Open Weffe opened 6 years ago
From playing with the mongoDB and deepstream's records, it looks like records are updated in mongoDB when updated in deepstream. However, for the testing, I am just overwriting a record's data and not appending to it as a list. Will need to test about pushing to a list and see if there might be performance issues with it.
Also, if you would like to see what data is currently inside the database...
ssh in to the nvidia and in a terminal type: mongo
use deepstream
- switch to the deepstream tabledb.deepstream_records.find().pretty()
- pretty print everythingOr you can do this locally for a local mongodb instance
I have updated the test folder for the fake science sensors to use Lists in deepstream. I was not able to test it but it should work. (/rover/core/servers/deepstream
)
@kiren-s Your goal is to try and make sure whatever is updating on deepstream is getting replicated into the mongo database. There is already a mongodb plugin written that I have tested that works. The only requirement for you is to install and setup mongodb on your computer. Then inside the /rover/core/servers/deepstream/ds-server/
folder you can npm install
and npm start
to start up the Deepstream server. Inside /deepstream/test-client-and-receiver/
you can do the same npm install
and npm start
to start spitting out fake data to the Deepstream server.
Refer to the README in the folders for any clues. Also, feel free to ask for clarifications from me. Kind of wrote this up in a rush 😅
We need to make sure that deepstream record changes reflect inside mongoDB