Database insert performance

后端 未结 8 1187
甜味超标
甜味超标 2021-02-07 22:40

We are planning to implement a system for logging a high frequency of market ticks into a DB for further analysis. To simply get a little what kind of storage performance we can

相关标签:
8条回答
  • 2021-02-07 23:12

    I can only really comment on sql-server, but there are some things to try:

    • command batching (i.e. do multiple INSERT in a single hit to the db)
    • bulk insert (via SqlBulkCopy)

    either should give significant improvements on single-row inserts (the latter being fastest)

    0 讨论(0)
  • 2021-02-07 23:14

    If you want insert-only operations, you can get more out of mysql by using Archive engine and INSERT DELAYED.

    Otherwise, try any of the local-storage KV engines: BDB, QDBM, Tokyo Cabinet, etc.

    0 讨论(0)
提交回复
热议问题