Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGDB indexing impl for attributes #96

Open
teodosin opened this issue Sep 2, 2024 · 0 comments
Open

AGDB indexing impl for attributes #96

teodosin opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@teodosin
Copy link
Owner

teodosin commented Sep 2, 2024

The goal of this feature is to be able to quickly find all instances of an arbitrary attribute in the entire graph.

Originally I was going to implement this by creating an "attributes" node, and then for each unique attribute, create a node for it and connect it to attributes. Then each instance would be connected to the archetype node of that attribute name. Agdb also has an indexing system for quicker search of specific attribute names. It could be a better fit for this feature.

The benefits of having it all be nodes is that they could utilise relative positions when viewing the context of a certain attribute archetype. The downsides are performance and bloat in the database. The root attributes node would need to exist in either case, because it would need to store a list of all existing attribute names. Conceivably it could also store some settings for how the attributes are laid out or sorted when in that view. Maybe it's unlikely that there would need to be anything more granular than that.

@teodosin teodosin added the enhancement New feature or request label Sep 2, 2024
@teodosin teodosin transferred this issue from teodosin/karta_server Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant