Changes between Version 1 and Version 2 of UserDocs/SQLite


Ignore:
Timestamp:
Feb 7, 2018, 3:21:30 AM (6 years ago)
Author:
rnuske
Comment:

trying to write complete sentences

Legend:

Unmodified
Added
Removed
Modified
  • UserDocs/SQLite

    v1 v2  
    1 == Good-to-Know about SQLite
     1= Good-to-Know about SQLite
    22
    3  * Warning about NFS, link to ​https://sqlite.org/faq.html "Can multiple applications or multiple instances of the same application access a single database file at the same time?" and some considerations about the journal modes, including WAL ​https://sqlite.org/wal.html
    4  * How does the R-Tree spatial index work and what makes them difficult to use with spatial views
    5  * Delete and change column names with ALTER TABLE ​https://www.sqlite.org/lang_altertable.html (not really supported)
     3OGR supports SQLite and some SQLite based Formats (eg. GeoPackage, !SpatiaLite, MBTiles and !RasterLite) if compiled with SQLite3. SQLite has many advantages and some quirkes. Some of which are listed here.
     4
     5''Please contribute to this list if you know of additional problems or can help with the language!''
     6
     7
     8== Do not write on Network File Systems / Samba Shares!
     9"SQLite databases often do not work well over NFS, or some other networked file system protocols due to the poor support for locking. It is safest to operate only on SQLite files on a physical disk of the local system." ([http://www.gdal.org/drv_sqlite.html OGR SQLite Documentation])
     10
     11
     12The "[...] locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS [...]."([https://www.sqlite.org/faq.html#q5 SQLite FAQ]) See also [https://www.sqlite.org/lang_altertable.html SQLite Documentation].
     13
     14
     15== Delete and Change Column Names
     16"SQLite has limited ALTER TABLE support that you can use to add a column to the end of a table or to change the name of a table. If you want to make more complex changes in the structure of a table, you will have to recreate the table." ([https://www.sqlite.org/faq.html#q11 SQLite FAQ])
     17
     18
     19== R-Tree Spatial Index
     20How does the R-Tree spatial index work and what makes them difficult to use with spatial views?
     21http://osgeo-org.1560.x6.nabble.com/gdal-dev-GeoPackege-views-and-spatial-index-td5312752.html
     22
     23
     24== Journal Modes
     25SQLite supports different journal modes. The default is the rollback journal. Beginning with version 3.7.0 (2010-07-21), a new "Write-Ahead Log" option (WAL) is available. On one hand WAL is significantly faster in most scenarios and provides more concurrency. But on the other hand WAL does not work over a network filesystem, it is not possible to open WAL databases from read-only media ([https://sqlite.org/wal.html SQLite Documentation on WAL]).
     26
     27
     28== Performance
     29See the section Performance hints at the bottom of [http://www.gdal.org/drv_sqlite.html OGR SQLite Documentation].