-
Hello, I'm trying to decide whether I should persist my entities with their Are there any situations where the closeness of IDs has significant performance implications? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
There is a subtle difference actually to make it possible to recycle identifiers without having to keep track of all holes in your set. |
Beta Was this translation helpful? Give feedback.
There is a subtle difference actually to make it possible to recycle identifiers without having to keep track of all holes in your set.
When generating identifier N, it triggers the generation of all non-existing identifiers with an entity id lower than its own, if any exist.
It's not a big deal since you're going to generate them all anyway sooner or later. Therefore, I don't think it will cause you any problems.