SQL Server Filestream - Delete “speed”

后端 未结 3 2191
Happy的楠姐
Happy的楠姐 2021-02-09 00:38

I\'m working with the filestream datatype for the first time (SQL Server 2008) and I\'m running into issues when I am doing some fast insert/deletes. Basically the speed at whic

3条回答
  •  失恋的感觉
    2021-02-09 00:59

    After some more research (and thanks to Paul Randal's blog - lots of very detailed information surrounding filestream and garbage collection), once the rows are deleted and a checkpoint is executed, the files are put in a system table (Tombstone table), then every 10 seconds a process (Ghost Cleanup) runs and remove some items from that table (20 to be exact). So basically we are limited to 2 deletes/seconds and there seems to be no way (yet) to change this behavior.

    Since I have a sustained 4 deletes per seconds I will need to find an alternative to filestream.

    Thanks everyone for your inputs.

提交回复
热议问题