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

Should Sync react somehow to creating the same item, if it was deleted before? #127

Open
trylika opened this issue Jan 29, 2015 · 0 comments
Labels

Comments

@trylika
Copy link
Contributor

trylika commented Jan 29, 2015

Theoretically, there could be such situation, when in sync storage table, we can find, Deletion of a document, and after that, creation of document with the same id. This raises two questions:

  • is such situation possible in real world?
  • should sync storage react to such situations and how?
+----+------+---------------+----------------------------------+---------------------+--------+
| id | type | document_type | document_id                      | timestamp           | status |
+----+------+---------------+----------------------------------+---------------------+--------+
|  3 | C    | product       | id0                              | 2015-01-22 15:20:25 |      0 |
|  4 | U    | product       | id0                              | 2015-01-22 15:20:25 |      0 |
|  5 | D    | product       | id1                              | 2015-01-22 15:20:25 |      0 |
|  6 | C    | product       | id1                              | 2015-01-22 15:20:25 |      0 |
+----+------+---------------+----------------------------------+---------------------+--------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant