Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Switch the primary slot addressing method #1

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

Switch the primary slot addressing method #1

boferri opened this issue Jul 4, 2013 · 0 comments

Comments

@boferri
Copy link
Member

boferri 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant