Book Image

Learning SQLite for iOS

By : Gene Da Rocha
Book Image

Learning SQLite for iOS

By: Gene Da Rocha

Overview of this book

The ability to use SQLite with iOS provides a great opportunity to build amazing apps. Apple's iOS SDK provides native support for SQLite databases. This combination offers the potential to create powerful, data-persistent applications. This book starts with the architecture of SQLite database and introduces you to concepts in SQL . You will find yourself equipped to design your own database system, administer it, and maintain it. Further, you will learn how to operate your SQLite databases smoothly using SQL commands. You will be able to extend the functionality of SQLite by using its vast arsenal of C API calls to build some interesting, exciting, new, and intelligent data-driven applications. Understand how Xcode, HTML5, and Phonegap can be used to build a cross-platform modern app which can benefit from all these technologies - all through creating a complete, customizable application skeleton that you can build on for your own apps.
Table of Contents (15 chapters)
Learning SQLite for iOS
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Index use


After a table is created with its column and datatypes, it is almost ready to use. The primary columns for data linking are done, but it is not quite ready as defined by a DBA. Instead, an index can be created to speed up SQL queries and act as special lookup tables that SQLite will use as a way of getting information faster.

An index has a data pointer, which will quickly reference the data and bring it back, thus making access quicker without much overhead generally. By definition, indexes do have an overhead in their own right, but the overheads of the index are dwarfed by the performance and efficiency gained. This could be useful for mobile applications because of their limited resource and network access.

A database index as an example is similar to the one located in a book, where you can find what you want because you know what it is, and just opens the book to right page, after reading the index.

The index is slow on data input but fast on the SELECT queries, with or without...