You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql_coursor.execute("CREATE INDEX timestamp_index ON stats_swaps (started_at);")
performance such select
t = (timestamp,pair[0],pair[1],)
sql_coursor.execute("SELECT * FROM stats_swaps WHERE started_at > ? AND maker_coin=? AND taker_coin=? AND is_success=1;", t)
works 5 times faster, so it might be good to index by timestamp by default
The text was updated successfully, but these errors were encountered:
After such index adding:
sql_coursor.execute("CREATE INDEX timestamp_index ON stats_swaps (started_at);")
performance such select
works 5 times faster, so it might be good to index by timestamp by default
The text was updated successfully, but these errors were encountered: