Comments (4)
The background to this can be seen here
As an overview, I looked at some stats using sqlite3_status and found PAGECACHE_OVERFLOW slowly increasing till the cache_size cap was reached. At this point my database performance became unusable for intensive queries (mainly BLOB retrieval).
from encrypted-core-data.
So I think the indexing issue was fixed here 972ee91 (my mistake in not updating my code before raising this issue).
I've also realised that SQLite doesn't require data types (everything is saved as a string).
from encrypted-core-data.
You are correct, indexes have been added, just went and verified that it was actually occurring. Thank you for tracking down that the fix was already in place.
Also ECD does save all data as strings. While not optimal, we haven't ran into any large issues because of it. Are you having headaches because of the lack of types under the hood? The types should still be preserved at the Objective-C level.
Did the indexes help your original BLOB slowdown issue, or is it still occurring?
from encrypted-core-data.
I thought that the data types might be an issue but I don't think it is. I looked into SQLite further and it looks like the dynamic data typing makes specifying them pointless.
The performance stats are identical to the previously reported (#67). However, the performance is greatly improved. There is a very slight drop off in performance as the database grows but nothing like before, where the app would completely freeze for 10+ seconds whilst retrieving the BLOB.
from encrypted-core-data.
Related Issues (20)
- ARC Semantic Issue Multiple methods named 'objectID' found with mismatched result, parameter type or attributes
- Using Encrypted CoreData in App Extension
- Unable to change password
- unable to initialize class object to change password HOT 1
- Fetch return nil data HOT 1
- missing support for batch requests (NSBatchDeleteRequest, NSBatchUpdateRequest) HOT 1
- Doesn't encrypt the .sqlite file and extra "ecd" tables doesn't have any records.
- Migration Old unencrypted Core database to Encrypted Core Data base(using SQLCipher).
- Migration Old unencrypted Core database to Encrypted Core Data base. HOT 2
- XCode 12 build error HOT 1
- Migrating SQLCipher version from 3.x to 4.x in Encrypted Core Data HOT 1
- How to implement Encrypted Core Data in Existing project with Swift 5.3.2 HOT 1
- NSFetchRequest returnsObjectsAsFaults doesn't work HOT 1
- Is this project no longer being maintained? HOT 3
- 'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release HOT 2
- Very small subset of users randomly getting EncryptedStoreErrorIncorrectPasscode error
- issue with Lightweight migration Coredata
- iOS CoreData- Tracking persistent transaction history
- Swift no such moduble EncrytedCoreData
- Default DB Storage location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from encrypted-core-data.