<< Back to previous view

[LOGIC-30] Add persistent memory tables Created: 09/Mar/12  Updated: 05/Jan/14  Resolved: 05/Jan/14

Status: Closed
Project: core.logic
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Brian Goslinga Assignee: David Nolen
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File 0001-Added-persistent-memory-tables.patch    
Patch: Code and Test

 Description   

Rels currently complect identity and value, and are not first class. This enhancement provides a single-arity relation as a first class persistent value. Equality (and hash code) is defined in terms of the ITableRel protocol, leaving the door open for alternative implementations.

The implementation provide in the attached patch is a hair faster than Rels in the single index case. The query strategy used in the multiple index case may or may not be faster than the one employed by Rels depending on the data. This could easily be made configurable, if desired.



 Comments   
Comment by David Nolen [ 17/Mar/13 6:53 PM ]

ThreatGRID has a really nice simple implementation going here that they are already using in production - http://github.com/threatgrid/pldb. We should probably just integrate it.

Comment by Ivo Wever [ 05/Jan/14 9:37 AM ]

Has been done in https://github.com/clojure/core.logic/commit/1375f34ef42ee6b288ccb110b5c8c4aeb87a39a9, which is included in latest release.

Comment by David Nolen [ 05/Jan/14 9:39 AM ]

Thanks for the bump.

Generated at Sat Oct 25 05:28:23 CDT 2014 using JIRA 4.4#649-r158309.