cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAW 17: Question on the system load of file handling functions (xp_write_file, xp_read_file) ?

Stalker4
Explorer
0 Likes
3,357

Hi,

SAP SQL AnyWhere 17.0.10 (8 cores), Windows Server 2016.

There's a large base:
- size - approximately 6 TB
- number of simultaneous connections - 300-500

The main size of the database falls on the texts of documents (word, excel, pdf, pictures), which are stored in the database itself (fields of long binary type), in separate tables located in separate tablespaces.

Users actively write to the database or read from the database, including quite active reading/writing of document texts. This creates quite a heavy load on the disk subsystem, which in turn leads to periodically noticeably lower responsiveness of the database server itself.

I have an option to change the way I store document texts, from storing them in the database to storing them in the file system (NTFS). In this case I will save them to the server using the system function xp_write_file, and read them using xp_read_file.

But this raises some questions: How will xp_write_file and xp_read_file behave under heavy load (when a couple hundred document files can be requested at the same time as several dozen other document files are being written) ?

Will transferring the storage of texts of documents from the database to the file system reduce the load on the disk subsystem, and if so, by how much ? and if yes, by how much ?

Accepted Solutions (0)

Answers (0)