-
Notifications
You must be signed in to change notification settings - Fork 6
Strategy to Index variable data #12
Copy link
Copy link
Open
Description
A simple example would be:
In planaria.js where index keys are defined, declare "out" instead of each individual pushdata field name.
This is challenging because:
- When you don't explicitly define the keys, new records can come in while the planaria is already indexed, requiring an expensive on-the-fly re-index for searches to yield results for new fields.
- with variable width protocols such as MAP, there may be many fields. It's possible to create a planaria that translates pushdatas into human readable field names based on the MAP schema where MAP keys become field names. When you have many different possible field names being indexed, you will quickly hit the mongodb limit of 64 field index max.
What can be done so that dynamic field names might be possible without explicitly defining each field to index?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels