Closed nounderline closed 2 days ago
Finalized block and exchange rates are bottlenecks:
┌───────────────────┬───────────────┬───────────────┬───────────────┬───────────────┐
│ event │ min │ max │ avg │ stddev │
│ varchar │ decimal(10,2) │ decimal(10,2) │ decimal(10,2) │ decimal(10,2) │
├───────────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
│ finBlock │ 26.51 │ 20343.94 │ 703.98 │ 3177.45 │
│ linkedAccounts │ 0.00 │ 0.12 │ 0.00 │ 0.01 │
│ landlineSessions │ 0.00 │ 0.12 │ 0.01 │ 0.01 │
│ namedAccounts │ 0.01 │ 0.65 │ 0.02 │ 0.04 │
│ chainGasConstants │ 0.01 │ 0.25 │ 0.02 │ 0.02 │
│ exchangeRates │ 1.43 │ 51.36 │ 31.93 │ 17.77 │
│ balance │ 0.01 │ 0.14 │ 0.02 │ 0.01 │
│ filterTransfers │ 0.13 │ 2.80 │ 0.21 │ 0.17 │
└───────────────────┴───────────────┴───────────────┴───────────────┴───────────────┘
Above is using publicnode.com which has unpredictable response time.
For QuickNode L2 URL we get much better response:
┌───────────────────┬───────────────┬───────────────┬───────────────┬───────────────┐
│ event │ min │ max │ avg │ stddev │
│ varchar │ decimal(10,2) │ decimal(10,2) │ decimal(10,2) │ decimal(10,2) │
├───────────────────┼───────────────┼───────────────┼───────────────┼───────────────┤
│ balance │ 0.01 │ 0.17 │ 0.02 │ 0.02 │
│ filterTransfers │ 0.15 │ 0.94 │ 0.24 │ 0.12 │
│ linkedAccounts │ 0.00 │ 0.03 │ 0.01 │ 0.00 │
│ landlineSessions │ 0.01 │ 0.08 │ 0.01 │ 0.01 │
│ finBlock │ 4.13 │ 21.45 │ 5.53 │ 1.91 │
│ namedAccounts │ 0.01 │ 0.13 │ 0.02 │ 0.01 │
│ chainGasConstants │ 0.01 │ 0.22 │ 0.02 │ 0.03 │
│ exchangeRates │ 1.54 │ 44.02 │ 34.44 │ 15.97 │
└───────────────────┴───────────────┴───────────────┴───────────────┴───────────────┘
Some calls to
getAccountHistory
may take even to ~10s in some circumstances. The function itself is fetching data from:Code, measurements: https://github.com/nounderline/240620-daimo-perf