- -- Running these queries 1 after 1
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'SPY' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 3.8sec Without Index: 4.33sec
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'INTC' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 899ms Without Index: 375MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'GS' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 227MS Without Index: 353MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'GOOG' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 558MS Without Index: 389MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'JPM' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 233MS Without Index: 304MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'C' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 277MS Without Index: 730MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'BAC' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 114MS Without Index: 270MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'MSFT' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 575MS Without Index: 393MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'IBM' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 333MS Without Index: 342MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'XOM' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 276MS Without Index: 301MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'CLF' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 131MS Without Index: 274MS
- (SELECT price, side, shares, tape_time FROM 'orderbooks' where ticker = 'EEM' and shares > 0 and tape_time in '2022-09-14') LATEST on tape_time PARTITION BY price;
- -- With Index: 111MS Without Index: 310MS