mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 19:14:19 +01:00
index on db and read spent proofs from db (#370)
* index on db and read spent proofs from db * add benchmark for testing * remove benchmark * add option to disable cached secrets * disable python 3.9 tests
This commit is contained in:
@@ -204,3 +204,13 @@ async def m009_add_out_to_invoices(db: Database):
|
||||
await conn.execute(
|
||||
f"ALTER TABLE {table_with_schema(db, 'invoices')} ADD COLUMN out BOOL"
|
||||
)
|
||||
|
||||
|
||||
async def m010_add_index_to_proofs_used(db: Database):
|
||||
# create index on proofs_used table for secret
|
||||
async with db.connect() as conn:
|
||||
await conn.execute(
|
||||
"CREATE INDEX IF NOT EXISTS"
|
||||
f" {table_with_schema(db, 'proofs_used')}_secret_idx ON"
|
||||
f" {table_with_schema(db, 'proofs_used')} (secret)"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user