Skip to content
Snippets Groups Projects
Commit 8da8c7a7 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Optimize access to sources by pubkey, using specific index for complex...

[fix] Optimize access to sources by pubkey, using specific index for complex condition - Close #1438
parent 0a7ac064
No related branches found
No related tags found
1 merge request!1420[fix] Optimize access to sources by pubkey, using specific index
......@@ -129,9 +129,9 @@ export class LevelDBSindex extends LevelDBTable<SindexEntry>
pos: number;
}[]
> {
const forSimpleConditions = await this.getForConditions(`SIG(${pubkey})`);
const forComplexConditions = await this.getForComplexeConditionPubkey(pubkey);
const reduced = Indexer.DUP_HELPERS.reduceBy(forSimpleConditions.concat(forComplexConditions), [
const forConditions = await this.getForConditions(`SIG(${pubkey})`);
const forPubkeys = await this.getForComplexeConditionPubkey(pubkey);
const reduced = Indexer.DUP_HELPERS.reduceBy(forConditions.concat(forPubkeys), [
"identifier",
"pos",
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment