Database insert performance

后端 未结 8 1314
甜味超标
甜味超标 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条回答
  •  萌比男神i
    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)

提交回复
热议问题