Skip to content

Commit 825a7ec

Browse files
committed
Minor tweaks to second run queries
1 parent 5c15bfa commit 825a7ec

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

benchmark/index.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ test('initial indexing', async (t) => {
172172

173173
const KEY1 = '%Xwdpu9gRe8wl4i0ssKyU24oGYKXW75hjE5VCbEB9bmM=.sha25' // root post
174174
const KEY2 = '%EpzOw6sOBb4RGtofVD43GnfImoiw6NzEEsraHsNXF1g=.sha25' // contact
175+
const KEY3 = '%55wBq68+p45q7/OuPgL+TC07Ifx8ihEW93u/EZaYv6c=.sha256' // another post
175176
const AUTHOR1 = '@ZngOKXHjrvG+cy7Gjx5pSFunUqcePfmDQQxoUlHFUdU=.ed2551'
176177
const AUTHOR2 = '@58u/J9+5bOXeYRDCYQ9cJ7kklghIpQFPBYxlhKq1/qs=.ed2551'
177178

@@ -198,13 +199,11 @@ const queries = {
198199

199200
'votes one initial': [and(votesFor(KEY1))],
200201

201-
'votes one': [and(votesFor(KEY1))],
202+
'votes again': [and(votesFor(KEY3))],
202203

203-
'votes again': [and(votesFor(KEY1))],
204+
'hasRoot': [and(hasRoot(KEY1))],
204205

205-
hasRoot: [and(hasRoot(KEY1))],
206-
207-
'hasRoot again': [and(hasRoot(KEY1))],
206+
'hasRoot again': [and(hasRoot(KEY3))],
208207

209208
'author one posts': [
210209
and(type('post'), author(AUTHOR1), isPublic()),

0 commit comments

Comments
 (0)