git ssb

0+

Dominic / yap-patch



Commit 7a4602b4d8ba03a08fa8dc8623644a1673938ce4

work around problem with current ssb-query, where it might choose a slow index instead of a fast one

Dominic Tarr committed on 10/17/2019, 11:16:23 AM
Parent: 35b6122037e20c7e9f0d9b54e257f4ade57b49b7

Files changed

public.jschanged
public.jsView
@@ -35,9 +35,12 @@
3535 //where something isn't included in the query but
3636 //is in the since.
3737 var since = self.since
3838 var _opts = u.createQuery(opts, {limit: 20, reverse: opts.reverse})
39-
39 + var _type = opts.type
40 + if(opts.channel) {
41 + delete _opts.query[0].$filter.value.content.type
42 + }
4043 pull(
4144 sbot.query.read(_opts),
4245 pull.filter(function (v) {
4346 return v.value.content.type === 'post'

Built with git-ssb-web