Problem: performance issue on transaction lookup (#2378)
Solution: create the correct index for transaction id. Close #2377
This commit is contained in:
parent
744ab3d5ef
commit
1118ddffa2
|
@ -55,7 +55,7 @@ def create_transactions_secondary_index(conn, dbname):
|
||||||
logger.info('Create `transactions` secondary index.')
|
logger.info('Create `transactions` secondary index.')
|
||||||
|
|
||||||
# to query the transactions for a transaction id, this field is unique
|
# to query the transactions for a transaction id, this field is unique
|
||||||
conn.conn[dbname]['transactions'].create_index('transactions.id',
|
conn.conn[dbname]['transactions'].create_index('id',
|
||||||
name='transaction_id')
|
name='transaction_id')
|
||||||
|
|
||||||
# secondary index for asset uuid, this field is unique
|
# secondary index for asset uuid, this field is unique
|
||||||
|
|
Loading…
Reference in New Issue