Frage

Ich habe eine Web-Anwendung unter Verwendung SQLite (2.8.17), habe ich erst jetzt entdeckt, dass es eine SQLite3. Es entzog sich irgendwie meine Aufmerksamkeit, wenn die Web-Anwendung zu machen, wahrscheinlich aufgrund der fehlenden Dokumentation für die PHP-Funktionen.

Ich frage mich, was sind die Vorteile von SQLite3 über SQLite? Ist es wesentlich schneller?

War es hilfreich?

Lösung

SQLite2 internally stores every value as a string, regardless of its type.
Upgrading to SQLite3 will certainly shrink the database size since numbers and BLOBS get stored in their native formats, which could make things run faster.
Another big advantage in my opinion is that recent versions of sqlite, (starting from 3.6.23) support foreign keys.

Since you were using PHP, I would suggest that you look into PDO. It could prove helpful in case you need to change the DBMS for the application

Andere Tipps

This documents from the sqlite.org website: http://www.sqlite.org/version3.html it doesn't talk about performance, but differences. anyway there are not update to sqlite2 I personally recommend using latest and greatest version 3 (see Improved Concurrency, always good for web applications).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top