In the current implementation of lo_import, lo_write will be called each time for each 8KB of the file. 8KB is the buffer size set in LO_BUFSIZE. Why is it so small? It slows down the file upload by 30-40% because of lo_write sends request and then waits response from a server.
Asked by Дмитрий Питаков
(1 rep)
Jun 17, 2024, 01:13 PM
Last activity: Jun 17, 2024, 02:33 PM
Last activity: Jun 17, 2024, 02:33 PM