-
Notifications
You must be signed in to change notification settings - Fork 68
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
Incorrect params for patch/update for clustered index with no sort key #412
Comments
Related discussion I could find: #361 |
Thanks @santiagomera for the reference #361 and @tywalch for your help in this topic! |
Firstly, thank you for raising this; this is not a good bug in the slightest. I looked into this and it should be a small tweak, I really wish I had not somehow missed #361. You can expect a PR for this tomorrow. Secondly, I suggest you avoid using a clustered index for your |
Thanks Tyler! The reasoning behind using a clustered index was that it is used in a collection, and the docs mention a clustered index works better for querying across entities (the playground example was simplified for focusing on the issue). Thank you very much for the quick response, and for the amazing work you are doing with this project! |
Describe the bug
When executing a patch/update, the GSI sort key is changed from the value generated at create, causing that the entity is not returned when queried using that GSI.
At create:
At update:
When querying:
Because the update removed the
#myentity_1
suffix fromgsic1sk
, the query conditions won't match and thus the entity is excluded from the query results.ElectroDB Version
2.14.2
ElectroDB Playground Link
Playground Link
Entity/Service Definitions
Expected behavior
That the format of the GSI attributes is not altered during patch/updates.
Errors
None
Additional context
The text was updated successfully, but these errors were encountered: