History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-457
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Arjohn Kampman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

Optimize NativeStore.getContextIDs() to use context-first indexes if possible

Created: 15/Oct/07 08:11 PM   Updated: 26/Sep/08 11:33 AM
Component/s: Native Sail
Affects Version/s: None
Fix Version/s: 2.2


 Description   
Issue reported on the forum: http://www.openrdf.org/forum/mvnforum/viewthread?thread=1466

NativeStore.getContextIDs() currently stores all returned resources in a HashSet to filter duplicates. When the stores contains large numbers of contexts, this consumes large amounts of memory. In case a context-first index is available, this can be optimized by iterating over the triples in order, requiring only the last returned resources to be remembered.

 All   Comments   Change History      Sort Order:
Comment by James Leigh [04/Jul/08 10:06 PM]
Add context iteration methods to TripeStore and NativeStore that are optimized if an index starting with 'c' exists in revision 7430.