-
|
This was a pain in orientdb when complex relationship in document linking (along with edges). I could not see anything in docs; wheter rids are preserved at database restore (by creating the db while restoring?) The docs on the backup and restor refer to some kind of ID; what is it? Is it original @Rid? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
RIDs are auto assigned. So in a export/import they can change. In backup/restore, they don't, because the database is identical to the backup. You shouldn't rely on RIDs. If you need to reference a record, better to have a key (uuid?). |
Beta Was this translation helpful? Give feedback.
RIDs are auto assigned. So in a export/import they can change. In backup/restore, they don't, because the database is identical to the backup.
You shouldn't rely on RIDs. If you need to reference a record, better to have a key (uuid?).