perkeep/pkg/search
Brad Fitzpatrick c36a3a087e pkg/search: don't run a speculative search more than once a time
When new blobs arrive we re-run open search queries (those requested
by an active websocket client) in case they changed, and then push the
new result to the browser if they did change.

But when uploading lots of data if the browser has a big search query
active, it was possible to start running the same query in many
goroutines over the same data. Don't do that.

Verified that this was the case with some temporary logging in the
already-refreshing case.

Updates camlistore/camlistore#519
2015-12-29 13:33:45 -08:00
..
describe.go vendor: go4.org/strutil go4.org/syncutil 2015-11-21 00:21:20 +01:00
describe_test.go pkg/client: make Describe use a POST request to the server 2014-10-19 17:36:22 +02:00
export_test.go
expr.go Remove pkg/context 2015-12-12 23:09:02 +01:00
expr_test.go Remove pkg/context 2015-12-12 23:09:02 +01:00
handler.go vendor: go4.org/jsonconfig (and errorutil) 2015-12-01 17:21:49 +01:00
handler_test.go pkg/search: fix test related to 1576fdad6d 2015-07-20 17:08:44 +02:00
lexer.go search: Self-documenting atoms 2014-05-15 00:42:32 +02:00
lexer_test.go search: Self-documenting atoms 2014-05-15 00:42:32 +02:00
match_test.go
predicate.go search: fix the build 2015-12-24 09:28:12 -08:00
predicate_test.go pkg/importer: use go4.org/ctxutil 2015-12-16 15:30:09 +01:00
query.go pkg/search: rm commented code 2015-12-16 16:19:09 +01:00
query_test.go search: fix tests needing null around 2015-04-04 19:10:10 +02:00
search.go Introduce search.QueryDescriber interface. *client.Client implements it. 2014-07-21 22:20:24 +02:00
websocket.go pkg/search: don't run a speculative search more than once a time 2015-12-29 13:33:45 -08:00