Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning SQLite for iOS

You're reading from   Learning SQLite for iOS Extend SQLite with mobile development skills to build great apps for iOS devices

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher
ISBN-13 9781785288975
Length 154 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Gene Da Rocha Gene Da Rocha
Author Profile Icon Gene Da Rocha
Gene Da Rocha
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to SQL and SQLite FREE CHAPTER 2. Database Design Concepts 3. Administering the Database 4. Essentials of SQL 5. Exposing the C API 6. Using Swift with iOS and SQLite 7. iOS Development with PhoneGap and HTML5 8. More Features and Advances in SQLite Index

Write Ahead Logging with SQLite


Write Ahead Logging with SQLite, also known as WAL, is the standard method that states how SQLite implements the rollback and commit processes with this mobile database system. The disk access and input and output operations are more sequential, using the WAL methods. Using WAL will involve less of the fsync() functions and operations. It means it is more likely to work properly on different operating systems and smartphones. WAL is faster on most operations and provides better concurrencies, as there are no conflicts with processes reading and writing at the same time with a big reduction in any data block.

As much as there are advantages, there are also limitations to this method. WAL does not work efficiently with very large transactions, but much better with smaller transactions. For transactions of around 100 megabytes, it will work fine, but over a gigabyte, it will start to reduce its efficiency. There is also another issue: WAL could fail operations...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime