[英]OrientDB: RIDs assigned once and forever?
Imagine the following: 想象以下情况:
Now my question is: Is there a possibility/risk, that the RID #19:2 could be assigned again to another newly created node or can I be sure, that it won't be assigned ever again? 现在我的问题是:是否有可能/风险,可以将RID#19:2再次分配给另一个新创建的节点,或者我可以确定,将不再分配它吗?
Luca Garulli (Founder and CEO of OrientDB LTD) wrote here on SO: 卢卡Garulli(的OrientDB有限公司创始人兼首席执行官)写在这里的SO:
the RID (Record ID) is never recycled.
RID(记录ID)永远不会被回收。
But it would probably be wise in general to regard it as an internal "implementation detail" whenever possible, if only because @rid values might not survive export/import. 但是,通常仅在可能的情况下将其视为内部“实现细节”可能是明智的,这仅是因为@rid值可能无法在导出/导入中生存。 (For this reason, I think it would be nice to have a shorthand for
SELECT FROM <class> WHERE <id> = <value>
) (由于这个原因,我认为最好为
SELECT FROM <class> WHERE <id> = <value>
的简写)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.