Expand description
Stable per-database instance identity (#5742).
Autoincrementing primary keys (e.g. conversation_id) are unique only within one
physical database. When multiple independent databases share a single external
store (e.g. Qdrant), those keys collide. get_or_create_instance_id gives each
database a random UUID, generated once and persisted, that callers combine with
such keys to disambiguate them across databases.
Functions§
- get_
or_ create_ instance_ id - Fetch this database’s stable instance UUID, generating and persisting one on first call.