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

Switch the primary slot addressing method #1

Open
zazi opened this issue Jul 4, 2013 · 0 comments
Open

Switch the primary slot addressing method #1

zazi opened this issue Jul 4, 2013 · 0 comments

Comments

@zazi
Copy link
Member

zazi commented Jul 4, 2013

currently, the primary slot addressing method is the utilisation of olo:index. the main drawback of this approach is that the index needs more or less completely rewritten when someone inserts or deletes entries from this list. a more flexible approach is to follow the adjacency list approach, i.e., to utilise the next (olo:next) and optionally the previous (olo:previous) relationship as primary slot addressing method (which are currently secondary, i.e., both properties are optional). This has the advantage that one does not really need to update the index values of the slot all the time when the ordered list was manipulated. One can also easily assign the index number when retrieving a full list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant