Hello sir,
How are you.? hope you are doing great.!!
First of all why you have defined this collection?
Collections in MongoDB :
• secure_users ( _id , username , pass, date_insert , date_lastlogin )
• secure_sesions ( sesionkey , date_expire )
• content ( _id , title , content , LatLon ( float [ ] ) , time )
• logs ( date_insert , user_id , type, LatLon , speed)
i think we can combine this three
secure_users ( _id , username , pass, date_insert , date_lastlogin )
• secure_sesions ( sesionkey , date_expire )
• content ( _id , title , content , LatLon ( float [ ] ) , time )
into one that is a beauty of noSQL we can make subCollection same as subDocuments in mongoDB
is there any specific reason you have depart them?
getContent ( sesionkey , lat , lon , type (string ) , speed ( int ) ) : returns object
We have a collection with geo data. This method returns the 50 closest to the specified coordinates. Type and speed, are not used at the moment.
=> you have specified that you have a collection with GEO data.. how our script will check for the data? do we have list of all the datas in collection already in a mongoDB on which we have to fire query to look out for?
• logs ( date_insert , user_id , type, LatLon , speed)
=> as i am seeing here you are relating two documents here logs and secure_users, i think we should combine all of them into one collection. what do you say?
looking forward to work with you.
node.js,mongo and express are good choice.
Thanks,
jExplorer