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.

[Entitas:] EntityIndex with multiple key support

See original GitHub issue

Usually you generate one key for a given entity, e.g. name : string. In some cases it is helpful that one entity generates more than one key, e.g. a building on a map with position and size. The building is at position(0,0) but because it has a size of (2,2) should also generate keys for all the other occupied positions.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
sschmidcommented, Sep 7, 2018

If you can represent this as an int, it would be great. Otherwise there’s a risk to create lots of string and increase the gc pressure

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Entitas:] EntityIndex with multiple key support · Issue #279
In some cases it is helpful that one entity generates more than one key, e.g. a building on a map with position and...
Read more >
Unique Key constraints for multiple columns in Entity ...
First approach: dbContext.Database.ExecuteSqlCommand(string.Format( @"CREATE UNIQUE INDEX LX_{0} ON {0} ({ ...
Read more >
Work with alternate keys (Microsoft Dataverse) - Power Apps
In this article. Create alternate keys; Retrieve and delete alternate keys; Monitor index creation for alternate keys.
Read more >
EntityIndex (Oracle - Berkeley DB Java Edition API)
An EntityIndex supports two mechanisms for retrieving entities: The get(K) method returns a single value for a given key. If there are multiple...
Read more >
Best practices for generating unique multi-column keys for ...
Best practices for generating unique multi-column keys for weak entities? · Create unique sequence per set of rows sharing the same foreign key...
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