Replies: 5 comments 6 replies
-
Hey @thomasf1, there are several possible options:
|
Beta Was this translation helpful? Give feedback.
-
@generall Do we get a capability of auto-generated id? |
Beta Was this translation helpful? Give feedback.
-
If I understand the docs correctly, the ID field is either an integer or an UUID. I did not see an option to auto-generate an ID on insert. It´s an interesting design decision, it seems to put some unnecessary limitations on the product - especially when migrating from another DB and wanting to keep IDs or having an existing strategy for generating IDs. Pretty basic stuff in traditional DB Products... |
Beta Was this translation helpful? Give feedback.
-
That makes sense, that can be tricky/costly to implement. The choice of either Integers or UUIDs seems a bit limiting though, but I guess it is the two extremes that are easiest (either fully app/user managed sequential IDs or long ones with a low chance of collision). Would you guys consider opening up the ID field to Strings (which UUIDs basically are, too), it would be nice for a migration to use existing IDs - also for URLs UUIDs are a bit long. The problem of inserts would still need some solution though, not sure what happens currently when a numeric or UUID id already exists? The alternative of managing two sets of IDs (one Record ID and one in the payload) seems like messy though, especially when using features like recommendations which are Record ID based and would need mapping tables or something. |
Beta Was this translation helpful? Give feedback.
-
When a collection uses integer IDs, is there an efficient way to query the largest existing ID in the collection? |
Beta Was this translation helpful? Give feedback.
-
Sorry for this noob question, but I couldn´t find anything in the documentation.
Porting some code over from another DB, currently the IDs on an new Item (DB entries / Points) are randomly generated and in the rare case a ID already exists the code inserting it throws an exception and a new ID is assigned.
There seems to not be a insert/create function with qdrant, giving me the feeling that this not encouraged. What´s the best practise on qdrant (while keeping ID assignment in the Code / not shifting it to the DB)?
Beta Was this translation helpful? Give feedback.
All reactions