Hi, I use CakePHP, and I wonder if it is worth storing things that change little in the database, a list of cities?
If your application already needs a database, why do you need to store data somewhere else?
If the list does not change (for each installation), and it is small enough and often used, then it may be worth reading it once during initialization and caching of the result to increase productivity and reduce the load on the database.
, . , , .
, - $0.02
( , , , enum ...), .
db find/Containable .
http://github.com/jrbasso/array_datasource
, db, , . , db . , , . , . , .
, , , - . .
Bill Lizard , , . , db, , .
Source: https://habr.com/ru/post/1743617/More articles:Есть ли способ установить DLL, чтобы всегда следовать CultureInfo.InvariantCulture по умолчанию, если не указано? - c#Массив объектов в основной структуре данных? - cocoahow can i pass parameter to linq query - linq-to-sqlQLabel: interlinea / linespacing in WordWrap mode - qtPHP vs Phpmyadmin - phpThe installer needs platform 4.0 - but it is already installed - .netCan't get the message body of specific mailboxes from mailboxes using the Zend framework? - phpLocalize .NET assembly without source code - .netWhat is the difference between gtk_box_pack_start and gtk_container_add? - cHow are files (especially audio files) organized internally? - cAll Articles