GithubHelp home page GithubHelp logo

Comments (4)

sigmundfridge avatar sigmundfridge commented on July 28, 2024

The background to this can be seen here

#67

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.

sigmundfridge avatar sigmundfridge commented on July 28, 2024

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.

gavin-black avatar gavin-black commented on July 28, 2024

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.

sigmundfridge avatar sigmundfridge commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.