Skip to content

Commit add101d

Browse files
committed
update db readme
1 parent 5a52f18 commit add101d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ Indexes:
276276
- user_order_creation_timestamp: btree(`owner`, `creation_timestamp` DESC)
277277
- version_idx: btree(`settlement_contract`)
278278
- orders\_true\_valid\_to: btree(`true_valid_to`)
279+
- orders_owner_covering: btree(`owner`) INCLUDE (`uid`, `kind`, `buy_amount`, `sell_amount`, `fee_amount`, `buy_token`, `sell_token`)
280+
- orders_owner_class_valid_composite: btree(`owner`, `class`, `true_valid_to` DESC) WHERE cancellation_timestamp IS NULL
279281

280282
### fee_policies
281283

@@ -480,6 +482,7 @@ This table contains data of [`Trade`](https://github.com/cowprotocol/contracts/b
480482
Indexes:
481483
- PRIMARY KEY: btree(`block_number`, `log_index`)
482484
- trade\_order\_uid: btree (`order_uid`, `block_number`, `log_index`)
485+
- trades_covering: btree(`order_uid`) INCLUDE (`buy_amount`, `sell_amount`, `fee_amount`)
483486

484487
### surplus\_capturing\_jit\_order\_owners
485488

0 commit comments

Comments
 (0)