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

Synchronous writes


Synchronous writes are part of the SQL engine, which will ensure that data changes are written to the disk area, as required, for transaction reasons and the way databases work. In the case of SQLite, these operate under different statuses or settings of NORMAL, FULL, or OFF. For performance reasons, SQLite commits can be switched off by the DBA as required.

The OFF setting carries on its tasks quickly without much slowing down, minimal interruptions, and increased performance. However, in the case of a database crash, the data integrity will remain okay, but in the case of system crash and power loss, there is a good chance that corruption of the database itself may occur. There are performance gains to be made, but there are also risks associated with this move.

The FULL setting has to ensure that data is saved to disk properly and in good time before carrying on. This method is not good for performance, but is the most robust and the safest. If there are data corruptions...

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 ₹800/month. Cancel anytime