SQLite Optimization FAQ

Jim Lyon (jplyon@attglobal.net)
10-Sep-2003
Compiled from sqlite docs, source, and yahoo postings

This document is current for SQLite 2.8.6

1. Introduction

1.1. About this FAQ

This FAQ is an incomplete summary of my experiences with speed-optimizing an application that uses the SQLite library. It will be of most use to people who are already familiar with using SQLite. Feel free to send any questions and comments.

It is released under the terms of the SQLite license :)

** The author disclaims copyright to this material.
** In place of a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.

1.2. Table of Contents

  1. Introduction
  2. PRAGMA settings
  3. Transactions
  4. Indexes
  5. Optimizing queries
  6. Moving code into SQL
  7. User functions
  8. Callback functions
  9. Reducing database file size
  10. Reducing database load time
  11. Reducing SQL query parse time
  12. Hacking the source
  13. Using the btree interface
  14. Multiple threads
  15. Operating system issues

本日志由 flyinweb 于 2011-09-28 11:07:11 发表到 数据库技术 中,目前已经被浏览 463 次,评论 0 次;

作者添加了以下标签: SQLite OptimizationSQLiteSQLite tuning

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

一、基本简介

SQLite 是一个自持的(self-contained)、无服务器的、零配置的、事务型的关系型数据库引擎。因为他很小,所以也可以作为嵌入式数据库内建在你的应用程序中。SQLite 被应用在 Solaris 10操作系统、Mac OS 操作系统、iPhone 和 Skype 中。QT4 、Python 、 PHP 都默认支持 SQLite ,Firefox Amarok 等流行的应用程序在内部也使用了 SQLite.

SQLite 数据库引擎实现了主要的 SQL-92 标准,引擎本身只有一个文件,大小不到 300k ,但是并不作为一个独立的进程运行,而是动态或者静态的链接到其他应用程序中。它生成的数据库文件是一个普通的磁盘文件,可以放置在任何目录下。SQLite 本身是 C 语言开发的,开源也跨平台,并且被所有的主流编程语言支持。

相关资源

wikipedia.org

本日志由 flyinweb 于 2011-09-28 10:45:45 发表到 数据库技术 中,目前已经被浏览 499 次,评论 0 次;

作者添加了以下标签: SQLite

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文