22 Commits

Author SHA1 Message Date
mattn
35ce183894 Merge branch 'master' into broken-connectons-locking 2024-07-23 08:41:05 +09:00
fiatjaf
b157261a84 add bluge and prevent bolt/badger/lmdb from querying when there is a .Search field set. 2024-05-27 17:54:34 -03:00
fiatjaf
4c1b0497df lmdb/badger/bolt: actually stop the cursor when we have pulled enough.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
2024-04-18 20:32:58 -03:00
fiatjaf
fc2884d7aa lmdb/badger/bolt: limit index scans to the maximum of total returnable events. 2024-04-16 17:26:48 -03:00
fiatjaf
13db9b84a7 lmdb: remove prefix matching support.
Some checks failed
build cli / make-release (push) Has been cancelled
build cli / build-linux (push) Has been cancelled
2024-04-15 20:03:33 -03:00
fiatjaf
45c69ddf7f prevent relay queriers that exit before EOSE from locking the QueryEvents() function forever. 2024-02-21 08:41:20 -03:00
fiatjaf
44e9b11673 lmdb/badger: print id on value read error. 2023-12-22 20:05:25 -03:00
fiatjaf
0a8f93e886 break when idx isn't found to prevent an infinite loop. 2023-12-09 14:53:08 -03:00
fiatjaf
37e16afaba lmdb: prevent queries from getting halted and locking readers forever. 2023-12-07 23:52:01 -03:00
fiatjaf
c09105f54b lmdb: use a different goroutine for each read txn. 2023-12-07 11:44:20 -03:00
fiatjaf
3777e2f8f6 lmdb: do not use goroutines for each query.
thanks to @wojas at https://github.com/PowerDNS/lmdb-go/issues/28#issuecomment-1845056613
2023-12-07 11:36:25 -03:00
fiatjaf
9bd8c0fd4e lmdb: use an waitgroup so transactions don't get closed before they actually end in the sub goroutines. 2023-12-06 06:50:28 -03:00
fiatjaf
f2cccb0fce lmdb: use 8-byte keys instead of 32, use indexAddr, migrations. 2023-12-06 06:48:16 -03:00
fiatjaf
e3ddc80a08 lmdb: switch to powerdns fork of lmdb-go. 2023-12-06 06:45:51 -03:00
fiatjaf
b95cfc42cc lmdb/badger: change (fix?) and simplify queries (offsets and created_at stuff should be simpler and q-dependent). 2023-11-28 16:05:27 -03:00
fiatjaf
0214061431 lmdb/badger: prevent crashing when we get a filter like {"#e":[]} 2023-11-27 11:53:28 -03:00
fiatjaf
93a595e710 lmdb: fix argument ordering that was breaking the entire query system. 2023-11-25 15:22:08 -03:00
fiatjaf
d15d78bf10 lmdb: raw read. 2023-11-24 17:24:17 -03:00
fiatjaf
332e34f77a lmdb: store 32-byte tags in a separate index than the other tags. 2023-11-24 17:23:37 -03:00
fiatjaf
77f8ab5656 lmdb: fix error checking reversed signal. 2023-11-10 21:54:43 -03:00
fiatjaf
cc8695a3cc badger: get rid of panics. 2023-11-09 13:31:24 -03:00
fiatjaf
ddb950d8b5 make lmdb and badger backends use a binary encoding instead of nson. 2023-11-02 15:37:09 -03:00