Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 860 Bytes

TODO.md

File metadata and controls

23 lines (20 loc) · 860 Bytes

BEST PRACTICES

PERFORMANCE

  • error handling
    • if the conn.copy_records_to_table() operation throws exception, the app freezes instead of crashing
    • i need to get better at handling errors in asynchronous functions, i guess
  • adjust column CHECK operations to confirm bid < ask
  • profiling
  • use PYTHONASYNCIODEBUG
  • db query performance is slow, may need individual indexes instead of just the composite unique
  • how to gracefully kill consumers (equivalent of closing channels in go)?
    • right now, the queue must be filled before consumers are started,
    • that way, when the queue is empty, we know we're done