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

The B-tree usage with SQLite


The arbitrary storage of leaf nodes and its location on the actual disk will not link up or respond to the index order or any logical positioning. Therefore, a database search algorithm is used with the right structure, to change the position and quickly output a balanced search tree or, in short, a B-tree. Each branch of data will have its leaf nodes that link or refer to the memory location that is used to store each and every table of the database.

B-tree allows sequential access, deletions, and insertions, based on the general binary search tree in a node that can have two or more children. When data is removed or added, the number of child nodes will change, and in order to maintain a specific range, some internal nodes may join or split. Every internal node within a B-tree structure will have a number of keys. Each of these keys will have a value and will be divided into subtrees. B-tree is a good way to search for data with a key associated to find the...