opendatacam / opendatacam-mobile

OpenDataCam mobile app for android
https://play.google.com/store/apps/details?id=com.opendatacam
MIT License
12 stars 3 forks source link

Persistence Layer : MongoDB -> NeDB #7

Open tdurand opened 3 years ago

tdurand commented 3 years ago

No, we won't run MongoDB on android (for now ;-) )

https://github.com/louischatriot/nedb sounds perfect , we already used it for the twitter bot.. lightweight and it was working very well ( @b-g recommended this back in the days 🙌 )

TODO:

b-g commented 3 years ago

OK + great! :)

Just: Could we test whether a heavy recording eg. an entire days of 24h (which I guess will result in big files) will still work for all features? Happy to do the stress test with my phone once there is a alpha.

tdurand commented 3 years ago

yep of course...

Also maybe I could properly evaluate what would be the cost of actually running mongodb on android, there is a SDK maybe it is not very hard.. : https://docs.mongodb.com/realm/android/install

tdurand commented 3 years ago

PS: beta coming !! tomorrow or friday !

tdurand commented 3 years ago

yep of course...

Also maybe I could properly evaluate what would be the cost of actually running mongodb on android, there is a SDK maybe it is not very hard.. : https://docs.mongodb.com/realm/android/install

Hum. this seems to be MongoDB Realm.. which is for now unclear to me what is it , is it free, is it the same API .. anyways.. for now I will just go to down the route to the fast and simple for the beta... and let's see if we need to move to more robustness later on

b-g commented 3 years ago

👍! Looking forward! :)

tdurand commented 3 years ago

NB: first alpha ready: https://github.com/opendatacam/opendatacam-mobile/issues/3#issuecomment-747726946

update on this.. turn out to be a little more complex than expected.. as always .. but working ! yeah

First impression is that it sounds good enough for the first android version.. but let's see after more tests

b-g commented 3 years ago

👍

Also I think it might be the time to add an option to only persist counter data and not each frame of the tracker if we want.. most people don't care of the raw tracker data.

Yes. We kind have for this also the swich off pathfinder setting ... but it would be a pitty to disable the pathfinder mode on default as maybe people won't notice them ... hence just a new switch "Record Raw Paths: y/n" (n = default)