Today, we encountered a situation where we inserted more than 1400 pieces of data into the SQLite database. It takes one or two minutes to complete the result each time.
After searching, the solution is found here, and the required time is less
Steps
1. Prepare the SQLite Database
Note: Create or copy a database, open it, and execute the following two SQL statements in sequence (set the current location without an error)
Create
Table
"Android_metadata" ("locale"
Text
1. About SQLiteSQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL Database EngineTherefore, SQLite can be used to replace access to meet the needs of small-sized applications with a low concurrency. For
Previous condition: Before operating the ADB shell, remember to start the simulator first, because the ADB shell can be used only when the simulator has been started successfully.
1) Open the command prompt, enter ADB, and press Enter. If you get
The source of inspiration mentioned the release of sqlite3. Before his blog, I am reading new features of sqlite3, because we are using SQLite in actual projects. I used to reply to the blog. I thought about it later. I 'd better post it myself.
The reason why SQLite inserts data slowly: SQLite uses transaction operations for each insert operation when transactions are not explicitly used, while SQLite databases exist on disks as files, it is equivalent to opening a file every time you
I. Overview:
In SQLite, the lock and concurrency control mechanisms are handled by the pager_module module, such as acid (atomic, consistent, isolated, and durable ). In transactions that contain data modifications, this module ensures that all or
I. common expressions:
Like most relational databases, SQLite can well support expressions provided in the SQL standard, and its functions are consistent with the SQL standard, such: | */% +- <> & | = ===! = <> Is not in like And Or ~ Not
For mobile device development, such as Windows Mobile or Windows Embedded ce, SQLite is sometimes used as the storage database. By default, SQLite does not automatically recycle space. After a large amount of data is deleted, the size of database
The syntax of SQLite differs from that of SQL Server. For example, to insert data, the field indicating the seed must be specified as null to obtain a new ID.
Code highlighting produced by Actipro CodeHighlighter
In the past few days, the android icon is stored in the database due to issues related to the entire database.
Intent and bitmap objects are stored.
Storage intent:
There is a touri method in intent to convert intent to string type data, and
SQLite is a lightweight embedded file-type database. The following is an application attempt in. NET 2.0.
Tools used:SQLite expert SQLite database management tool, very easy to use, similar to the EMS SQL Manager 2007 for MySQL I introduced
The official developer of SQLite has given a simple example, the address of this example is http://docwiki.embarcadero.com/RADStudio/XE4/en/IOS_Tutorial:_Using_SQLite_in_an_iOS_Application.
In this exampleDbexpressControls for database
I. SQLite introduction SQLite is an open source database written in C language. It is mainly used for Embedded purposes. You can also integrate it into your own desktop.
Program Some people use access as the background database. SQLite supports
1 top This is a frequently asked question, for exampleSqlserverYou can use the following statement to obtain the first 10 records in the record set: Select top 10 * from [Index] order by indexid DESC; HoweverSQLStatement inSQLiteCannot be
I. Overview:
Five of the C/C ++ interfaces provided by SQLite are core interfaces. In this blog, we will mainly introduce their usage and the core SQLite objects they involve, such as database_connection and prepared_statement. Compared with APIs
I. Introduction:
SQLite is currently the most popular open-source embedded database. compared with many other embedded storage engines (nosql), such as berkeleydb and membase, SQLite supports some basic features of relational databases, such as
I. Memory Database:
In SQLite, databases are usually stored in disk files. However, in some cases, we can keep the database in the memory. The most common method is to pass ": Memory:" To the database file name parameter when calling sqlite3_open (
Use sqlite3_open to open a database
Prototype:
IntSqlite3_open (Const Char* Filename,/*Database filename (UTF-8)*/Sqlite3** Ppdb/*Out: SQLite dB handle*/);
Use this function to start database operations. Two parameters are required. One is the
# % Represents any number of characters
Select*FromUserWhereUsername like '% huxiao ';
Select*FromUserWhereUsername like 'huxiao % ';
Select*FromUserWhereUsername like '% huxiao % ';
# _ Represents a character
Select*FromUserWhereUsername like '_';
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.