LINUX.ORG.RU

История изменений

Исправление intelfx, (текущая версия) :

Типичный пример ситуации, когда переводчик не совсем разбирается в том, что переводит.

This macro sets the default maximum size of the page-cache for each attached database. A positive value means that the limit is N page. If N is negative that means to limit the cache size to -N*1024 bytes. The suggested maximum cache size can be overridden by the PRAGMA cache_size command. The default value is -2000, which translates into a maximum of 2048000 bytes per cache.

Короче, раньше ограничение на размер кэша было 2048 страниц, а сейчас 2048*1024 байт (и от размера страницы не зависит). Одновременно с этим размер страницы изменили с 1024 на 4096. Т. е. по сути изменили размер страницы, а (абсолютный) размер кэша оставили таким же.

Из пояснения:

Since the SQLite database file format was designed (in 2003) the default page size for new databases has been 1024 bytes. This was a reasonable choice in 2003. But on modern hardware, a 4096 byte page is a faster and better choice. So, beginning with SQLite version 3.12.0 (circa 2016) the default page size for new database files has been increased to 4096 bytes.

The upper bound on the database cache size has traditionally defaulted to 2000 page. SQLite version 3.12.0 also changes this default setting to be "-2000" which means 2000*1024 bytes, regardless of page size. So, the upper bound on the amount of memory used for the page cache is unchanged.

Исправление intelfx, :

Типичный пример ситуации, когда переводчик не совсем разбирается в том, что переводит.

This macro sets the default maximum size of the page-cache for each attached database. A positive value means that the limit is N page. If N is negative that means to limit the cache size to -N*1024 bytes. The suggested maximum cache size can be overridden by the PRAGMA cache_size command. The default value is -2000, which translates into a maximum of 2048000 bytes per cache.

Короче, раньше ограничение на размер кэша было 2048 страниц, а сейчас 2048*1024 байт (и от размера страницы не зависит). Надо полагать, 1024 байта — это стандартный размер страницы.

Из пояснения:

Since the SQLite database file format was designed (in 2003) the default page size for new databases has been 1024 bytes. This was a reasonable choice in 2003. But on modern hardware, a 4096 byte page is a faster and better choice. So, beginning with SQLite version 3.12.0 (circa 2016) the default page size for new database files has been increased to 4096 bytes.

The upper bound on the database cache size has traditionally defaulted to 2000 page. SQLite version 3.12.0 also changes this default setting to be "-2000" which means 2000*1024 bytes, regardless of page size. So, the upper bound on the amount of memory used for the page cache is unchanged.

Исходная версия intelfx, :

Типичный пример ситуации, когда переводчик не совсем разбирается в том, что переводит.

This macro sets the default maximum size of the page-cache for each attached database. A positive value means that the limit is N page. If N is negative that means to limit the cache size to -N*1024 bytes. The suggested maximum cache size can be overridden by the PRAGMA cache_size command. The default value is -2000, which translates into a maximum of 2048000 bytes per cache.

Короче, раньше ограничение на размер кэша было 2048 страниц, а сейчас 2048*1024 байт (и от размера страницы не зависит). Надо полагать, 1024 байта — это стандартный размер страницы.