Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate record for new collections/tables #5

Open
WolframHempel opened this issue Jan 10, 2017 · 1 comment
Open

Duplicate record for new collections/tables #5

WolframHempel opened this issue Jan 10, 2017 · 1 comment

Comments

@WolframHempel
Copy link
Member

{"_id":"ObjectId()","text":"something","__ds":{"_v":1},"ds_key":"ixqb796a-1ezjx1aff6m"}
{"_id":"ObjectId()","__ds":{"_v":0},"ds_key":"ixqb796a-1ezjx1aff6m"}

when I create a new Record for a Collection that was not existed before it also creates a duplicated document with the same ds_key what the first Record will have with a version 0
it is not a big problem as I can avoid finding it but does it have a purpose or am I doing something wrong with how I set my first Record?
this only happens with the very first Record for an empty Collection only, after that no similar problems arise

@sergej-kurakin
Copy link

I'm having same issue with empty MongoDB collection when inserting records into empty collection.
Deepstream 2.1.3, MongoDB 3.4 Community Edition.

db.character.find({ds_key:"1"}, {_id:1, "__ds._v":1})
{ "_id" : ObjectId("58ff0e7ee615fac3fcf69f8e"), "__ds" : { "_v" : 0 } }
{ "_id" : 1, "__ds" : { "_v" : 1 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants