On 10 Nov 2017, at 5:35am, advancenOO <haveagoodtime2...@gmail.com> wrote:
> In multi-thread scenario, I guess that threads may not use MMAP correctly > after one thread truncates wal-file. And that is the reason MMAP can not be > used together with WAL mode. Are the threads using the same connection ? > So, I am wondering if I can simply make the size of Wal-file a fixed size to > support MMAP for wal-file. What makes you think you need to use memory mapping ? It is purely for speed or do you have a hardware-based reason ? Have you tried your program without memory mapping to see if it’s fast enough ? Simon. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users