Giter Club home page Giter Club logo

Comments (3)

themisterholliday avatar themisterholliday commented on September 13, 2024 1

This should be an ongoing discussion but for the sake of cleaning up I'm going to close this issue. We should break up specific issues related to this one.

Also some of the issues raised are fixed in #47

from se-daily-ios.

themisterholliday avatar themisterholliday commented on September 13, 2024

I'm open to seeing what an sqlite or coredata implementation would look like. I haven't used those in a lot of projects. Realm is too large and we wouldn't use nearly half the features it provides.

I'm also trying to avoid writing extra data models to exclusively interact with the persistence layer. Disk seems like a good option to me since it uses Codable objects and it is light. I'm not sure how expensive it is to fetch, update, then rewrite the data but if that is too much I'm more open to another solution.

I don't see a ton of difference from retrieving all the objects and filtering the array, but once again, open to seeing other solutions if they're measurably better.

from se-daily-ios.

justinctlam avatar justinctlam commented on September 13, 2024

I understand. Let's stick with what we have. We can try do the fetch, update, rewrite for the time being and re-evaluate if it ever becomes an issue. Here are some example scenarios:

  1. There is data on posts already in Disk. Fetch new data. Retrieve existing data, combine with new data, replace duplicates with the newest data, rewrite back into Disk.

  2. There is data on posts already in Disk. User upvotes or downvotes. Retrieve existing data, update the individual post, rewrite data back into Disk.

from se-daily-ios.

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.