Code Monkey home page Code Monkey logo

Comments (5)

tobybellwood avatar tobybellwood commented on July 28, 2024

Have we considered doing any smarts on the incremental package_search, using metadata_modified to order - and page until we meet a record already updated? Whilst this may not solve up the issue, it will minimise the time it is missing, and minimise the chance of it occurring because of the reduced time querying?

This should enable more frequent increments (say hourly), coupled with a daily full refresh?

from magda.

kring avatar kring commented on July 28, 2024

yeah that's a good idea for doing incremental updates. I believe CKAN also has an API for getting modified packages since a date. But any kind of incremental update requires us to be able to do a full crawl and know that we got everything that was last modified before a certain date (the beginning or end of the crawl, let's say, depending on how the initial crawl works). So this issue is about making sure the initial crawl is actually reliable.

from magda.

kring avatar kring commented on July 28, 2024

Although maybe what you're suggesting is that we make a full crawl reliable by doing it naively, and then following it up with incremental one(s) until we don't see any more changes. That could work, and might be simpler than the page-with-overlap thing I described.

from magda.

tobybellwood avatar tobybellwood commented on July 28, 2024

yeah - if a full crawl is always followed by an incremental it should fix any updates. The same logic may also be applied to "large" multi-page incrementals for surety?

from magda.

kring avatar kring commented on July 28, 2024

Fixed by 6a546f6 using the simple approach of asking package_search to sort results by metadata_created asc. The order shouldn't be affected by updates, and new datasets should appear at the end.

from magda.

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.