-
Notifications
You must be signed in to change notification settings - Fork 133
WiP: @Unique and @Index (Any help is welcome) #120
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
Conversation
…roperty) The tests keep exploding with this though: ObjectBoxException: failed to create store: 10501 No index ID/UID assigned for indexed property: Property uByte (15, Byte) Even objectbox-model.json seems normal.
Just some quick feedback: |
None of our examples use an index, yet. I should change that. ^^ OK, more details: the model file needs an ...
{
"id": "13:8914743272487704330",
"name": "dateProp",
"indexId": "12:1548007883894887437",
"type": 10,
"flags": 8
}
...
"lastIndexId": "12:1548007883894887437",
...
"retiredIndexUids": [], So this is actually a lot more work than just adding the |
What's the difference between id and uid? |
IDs are given out in order ( Side note: I updated the Kotlin example to use an index. |
…ing apart @unique and @Index are sharing the same logic.
After turning them off this popped beautiful gem up: ObjectBoxException: failed to create store: 10001 State condition failed in assignIdsForProperty:476: indexId <= catalog.lastIndexId()
It took some work, but there should be a unified way to setup the models.
I have no idea what the above means, but its breaking everything. Which other types are considered not a good idea to index/unique? Help! |
Thanks! It's odd that |
Thanks for getting this started! If time permits it I might continue on this tomorrow. It's kind of hard to get this right without any docs on how this should work internally. |
replaced by #123 |
I have a basic implementation, but the tests keep exploding with this though:
This error applies to all the
@Unique
annotated fields.Afaik objectbox-model.json seems normal.
Help!