question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Be less aggressive at deleting sourced data

See original GitHub issue

Preliminary Checks

Description

Gatsby syncs data from local and remote sources into LMDB. We then run queries against our local DB. This syncing takes time and is a frequent cause of slow builds or slow dev server startups as some sources can be quite slow to sync from e.g. WordPress where 10m+ sourcing times aren’t uncommon.

This wouldn’t be a big deal except for the rare full sync when setting up a new site. Except unfortunately Gatsby’s pretty aggressive about deleting the local db of synced data.

Examples of user actions which unexpectedly trigger the local db being deleted:

  • adding or upgrading any npm package
  • editing gatsby-config.js in any way
  • editing gatsby-node.js in any way including common tweaks like editing createPages code

Previous attempts at fixing this:

Reproduction Link

https://www.gatsbyjs.com/starters/gatsbyjs/gatsby-starter-wordpress-blog

Steps to Reproduce

  1. setup a site with a source plugin that supports delta fetches like gatsby-source-wordpress and run gatsby develop
  2. restart gatsby develop and observe the sourcing time is much faster as we only sync updated content this time
  3. make a trivial edit to gatsby-config.js and restart the dev server
  4. observe that the local db is deleted and that gatsby-source-wordpress must refetch all data

Expected Result

gatsby-source-wordpress only refetches all data if I a) upgrade the plugin or b) edit its config.

Actual Result

Many changes I make to a site trigger refetching all data.

Environment

n/a

Config Flags

n/a

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
KyleAMathewscommented, Aug 28, 2022

Fixing bugs is always appreciated and for new features, most of the energy will be directed at the active RFCs so testing canaries and helping flesh out the new features is very helpful to ensure robust, fast releases.

0reactions
github-actions[bot]commented, Oct 28, 2022

Hey again!

It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!

Thanks again for being part of the Gatsby community! 💪💜

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Gets More Aggressive with Auto-Deleting User Data
One year ago, Google enabled a feature that allows its customers to auto-delete location history and web and app activity. This week, the...
Read more >
How To Remove Personal Information From Internet Sources ...
We've created a comprehensive guide to removing personal information from the internet so that you can enjoy a less invasive online ...
Read more >
There's a way to delete the frightening amount of data Google ...
We'll walk you through how to delete the information Google collects about you, from what you search to your location.
Read more >
How to delete missing source rows from your target database ...
In this video, Mark Kromer shows you how to delete identified source rows that are not present in your source data and need...
Read more >
Under COPPA, data deletion isn't just a good idea. It's the law.
Here are a few questions that might help your company navigate COPPA's data retention and deletion requirements:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found