Giter Club home page Giter Club logo

Comments (6)

jamessimone avatar jamessimone commented on June 2, 2024 1

@g3ortega on the subject of loading time: Gatsby offers caching for created nodes but we would have to change the id passed to the createNodeId function in the DocumentManager to use the metadata id from Paper in order to cache the rest of the document (but this would substantially speed up the API because the metadata call is quite fast). I have tested this locally, caching the last_updated_date and the metadata id in order to preserve the existing Gatsby node unless the current last_updated_date differs from the one in Gatsby’s cache.

If @alexmcarthur is open to it, I’m happy to put the PR with that code up here.

from gatsby-source-dropbox-paper.

alexmacarthur avatar alexmacarthur commented on June 2, 2024 1

@jamessimone Please do! Curious about the node caching you're talking about. I'm not to that level of familiarity with Gatsby's API to make that happen.

from gatsby-source-dropbox-paper.

g3ortega avatar g3ortega commented on June 2, 2024

I've been looking for a way to get docs by folder and it seems they don't support it (at least in the current version of the API). Is there a way to filter by hashtag? If so, I can help with that.

One of the problems I have right now is the time it takes to load all the documents, hopefully they improve the API soon.

from gatsby-source-dropbox-paper.

jamessimone avatar jamessimone commented on June 2, 2024

@alexmacarthur just opened #8 for that!

from gatsby-source-dropbox-paper.

g3ortega avatar g3ortega commented on June 2, 2024

@jamessimone, just curious, how is handled the expiration in that case? can we set the expiration time or something like that?

from gatsby-source-dropbox-paper.

jamessimone avatar jamessimone commented on June 2, 2024

@g3ortega I am not sure of Gatsby’s internal expiration handling of the .cache folder; if any, but my guess is that all caching between builds that isn’t explicitly set using this paradigm (which in the case of Dropbox paper would be based off of the last modified date for each individual doc) just gets rebuilt into that folder

from gatsby-source-dropbox-paper.

Related Issues (4)

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.