HTTP GET request using start and end date in couch db - nosql

I have a database which have information regarding the device logs. I am able to pull the device logs details using the device id as follows.
http://localhost:5984/device-log/_design/DeviceLog/_view/by_device_id?include_docs=true&descending=true&key=%22000000a20040c656ea%22
I would like to filter the device logs using a start and end date. It would be great if get the query using the dates.
Thanks in advance

Related

Does anyone know what is the API hit limit for the APP STORE SERVER API per day?

I am trying to fetch recent subscription information by using original transaction Id on a "app store server API" provided by an Apple. I want to know how many request can I hit per day. Anyone who has worked in this API requests previously, please help me.

Where should I keep data to continuously use in server?

Currently, I'm trying to build a dating app(server part).
I'm going to store each user's profile data like videos, photos, profile messages to AWS S3.
And I have user info including location(longitude, latitude) in my database server.
If you've ever used this kind of app, you might easily understand how it works.
First, whenever a user opens this app, the user gets to see the profile of other users one at a time based on the current location.
Second, the user gives like or dislike to the current profile and gets to the next profile.
So, in order to implement the first step, I'm going to search other users in a certain distance from the user's current location in the database, but here I'm only going to get unique user ID values from database. This only happens once when a user opens the app.
Now that I have other users' id values like [id1, id2, id3, id4...] I can load each user's profile data from AWS S3 with each unique id value one by one whenever the user needs to see the next profile.
Here my question comes. To build the recommendation logic like that, where should I keep the id values??
Thanks in advance.
Use a in memory cache like Redis/memcache (both provided by AWS). Also your cahce should get updated as and when data in AWS S3 profile updates because only then you will have latest data.

Golang server background notofication process

I apologize in advance for my bad english.
I've created simple training service in golang, which supports login and registration system with MongoDB. This service allows you to scrape rooms for rent in London in specified location if you loggedin. So, now I want to implement notifications for loggedin user's about new rooms in user's marked location. My first idea was to make some background process, which will scrape rooms every 30 seconds, save the results (in mongo, in cookies or somewhere else, advise me please), match new scrape results with previous and save differences (new rooms) in DB for future posting to user in some form (email or list on html page).
1) Is my idea about notifications generally correct? If not, please describe me better way to do this or point to some relating examples.
2) What is the best way to make that background process in go?
3) This would be great if you'd point me on some examples relating to the case.
The demo of service on Heroku
Github repo
I appreciate your concern.

How can we detect that server database has changed from iPhone?

I am developing application in which i have to create url request when server side database is updated.Actually I am trying to make url request when its necessary.So,it will reduce number of request.I want detect that server database is changed.That can be done using push notification but i am looking if there is any other-way.
Thanks In Advance.
You can not detect from the phone when db on the server is changed. You have to make frequent request to the server to see if you have new data. This will consume the users battery and its data from the data plan.
That is why you should push from the server to the mobile devices.

iOS app - users updating wait time

I am building an iPhone app in which users (or employees) will be able to go to restaurants and update/give an estimate of the waiting time at that location. To do something like this, would it be most efficient to use an XML webpage and parse the data that is currently there and update that value with the user's input then reload the XML database? Obviously any user should be able to update the site so it needs to be done from a web-server.
Also, if anyone knows of a similar example for this, that would be spectacular!
Thanks for your help,
you can take a textfield in which you can fill the value and then send it onto the web server through XML or JSON web service and the other users can see the update from the web service.