question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entity Ids have finite limit

See original GitHub issue

As I am sure someone else will come out with this at some point, currently the Ids of entities were VERY basic in implementation and will not really track unused ids etc so if you were to instantiate over the period of a game int.MaxValue I believe currently it will blow up.

Ids were implemented but the use cases for them seem minimal, so it may be simpler to just remove the notion of Ids, but if there are some good use cases we can do some work around this area to make Ids more intelligent.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mrserverlesscommented, Dec 29, 2016

Would it be possible to use a Guid instead of int?

0reactions
grofitcommented, Jan 30, 2017

Just to keep everyone in the loop, I have done this on a local branch so it uses Guids, however my laptop screen broke a bit, so I am waiting for it to be returned before I test and commit that branch. So will mark it as in next release but its not technically been comitted yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity ID limit. : r/feedthebeast
Entities are stored as an integer src, so according to NBT spec src, it can store entities from -2,147,483,648 to 2,147,483,647, a huge...
Read more >
What is the max character length of Entity Id?
The id for an entity is part of a key, so the limit is 6 KiB for the entire key, including all ids...
Read more >
what is the maximum salesforce id length [duplicate]
1 Answer. Salesforce is using 18 character IDs. There are also the shorter 15 char case-sensitive ones. Salesforce recommends the use of the ......
Read more >
A guide to IDs for JPA entities. IDs generated on the server
2⁶³-1 is a big number. If we store 10,000 objects per second, it will take us about 29 million years to exhaust the...
Read more >
A Roadmap to Entity Relationships - Sander Mertens - Medium
Since entity relationships first got introduced to Flecs in 2021, ... It works well as long as we have a finite list of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found