git ssb


0+

Dominic / flumeview-query



Branch:

Dominic Tarr committed 3.0.3Latest: 9ba3446 on 11/29/2016, 11:01:32 AM
📄.travis.yml
📄LICENSE
📄README.md
📄index.js
📄links.js
📄package.json
📄query.js
📄select.js
📁test
📄util.js

flumeview-query

A flumeview with map-filter-reduce queries

Motivation

This particular module was because I needed to index links in secure-scuttlebutt
in a flexible way.

example

var db = Flume(log).use('links', FlumeQuery(null, indexes))
pull(
  db.links.read({query: query}),
  ...
)

indexes

the indexes argument is an array of indexes that flumeview-query will be able to look at to do a fast query.

queries

This module uses map-filter-reduce queries, if the filter stage uses fields that are in a index, then streamview-links
can choose the best index and perform many queries very quickly.

see map-filter-reduce for documentation of the syntax, and ssb-links for example queries, performed on top of secure-scuttlebutt

License

MIT


Built with git-ssb-web