Mysql, SQLite, Scalability

Could SQLite be an alternative to mysql in high traffic websites? Thanks

+3
source share
5 answers

Short answer: SQLite is an embedded database. This assignment is different from stand-alone RBDMS. Keep in mind that with faster queries than MySQL, keep in mind that SQLite has:

  • there is no good network support (the goal of SQLite is different), so replication is PITA
  • coarse blocking (one record at a time)
  • leading table statistics
  • no query optimizer
  • large memory consumption with large databases (each transaction will require 100 GB of database).

, SQLite , , , ( ), SQLite .

MySQL: MySQL - . :

+2

SQLite , - ( , 99,9% -). -, SQLite , , , . , , 100K / SQLite. 100K/ , . SQLite 10 .

: http://www.sqlite.org/whentouse.html

+3

. SQLLite concurrency. .

+2

! !

+1

Only if you push your data into the cache and read from the cache. SQLite can be used as persistence for the cache, but its really not recommended.

+1
source

Source: https://habr.com/ru/post/1772339/


All Articles