git ssb

0+

Dominic / flumeview-query



Commit ecc84cce1dbb0fe84c3c29deaa3e1254b7dc6afa

filter when you do a full-scan

Dominic Tarr committed on 11/29/2016, 4:00:55 PM
Parent: 7af990ae7724e32491ab9490d20cc7b94907c514

Files changed

index.jschanged
index.jsView
@@ -50,13 +50,13 @@
5050 else
5151 q = {}
5252
5353 var index = select(indexes, q)
54-
54 + var filter = isArray(opts.query) ? mfr(opts.query) : pull.through()
5555 if(!index)
56- return log.stream({
56 + return pull(log.stream({
5757 values: true, seqs: false, live: opts.live, limit: opts.limit, reverse: opts.reverse
58- })
58 + }), filter)
5959
6060 var _opts = query(index, q)
6161
6262 _opts.values = false
@@ -73,9 +73,9 @@
7373 pull.map(function (data) {
7474 if(data.sync) return data
7575 else return data.value
7676 }),
77- isArray(opts.query) ? mfr(opts.query) : pull.through()
77 + filter
7878 )
7979
8080 }
8181
@@ -84,4 +84,8 @@
8484 }
8585
8686
8787
88 +
89 +
90 +
91 +

Built with git-ssb-web