Answer the question
In order to leave comments, you need to log in
NeDB data update and download, will it fail?
When updating data, NeDB does not overwrite the data, but creates a new row.
Won't it happen that NeDB selects a row with stale data when it reads it? It looks like this.
{"log":"red","pass":"fff","unitg":{"id":null,"x":5,"y":5},"_id":"vTujNu7XuacFl35N"}
{"log":"red","pass":"fff","unitg":{"id":null,"x":10,"y":5},"_id":"vTujNu7XuacFl35N"}
{"log":"red","pass":"fff","unitg":{"id":null,"x":11,"y":5},"_id":"vTujNu7XuacFl35N"}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question