Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Creating separate collections for every secondary index leads to a lot of duplication of statements throughout mongodb. This effort should be rather minimal with better ramifications. Less data duplication leads to less expensive data being stored.
This will also simplify the MongoStorageStrategy structure significantly. Base way to get a triple from mongo, and each new field/set of fields will have its own implementation built ontop.
Currently:
[Triples collection]
{
Object_ID: [id],
subject: "subject",
predicate: "predicate",
object: "obj"
}
[indexer collection, ex: temporal] with indexing over timestamp
{
Object_ID: [id],
subject: "subject",
predicate: "predicate",
object: "obj"
timestamp: [time]
}
how mongo should be used:
[Triples collection] temporal indexer enabled
{
Object_ID: [id],
subject: "subject",
predicate: "predicate",
object: "obj",
timestamp: timestamp
}