antoniopresto / react-native-local-mongodb

react-native local mongodb storage.
MIT License
303 stars 66 forks source link

Deleting the records after inserting into DB #66

Open mvsiva4u opened 5 years ago

mvsiva4u commented 5 years ago

HI Team,

Please help to solve the below issue.

Issue: In production environment after inserting into DB the recrods are missing. For our business scenario we are frequently updating the records based on the conidtion. But we have use below line and set 5s in produciton. Please help us to understand the below line Pros and cons. suspecting Autocompaction is triggering in setinterval what ever the record trying to update at that time that record is missing .

yourDatabase.persistence.setAutocompactionInterval(interval)

But below are the React -Native version and React version we are using along with REDUX and Saga operation.

"react": "^16.6.3",
"react-native": "^0.57.8",

"react-redux": "^5.0.2", "reduce": "^1.0.1", "redux": "^3.7.2", "redux-persist": "^5.10.0", "redux-saga": "^0.16.0", "reduxsauce": "^0.7.0",