Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache data during build time for getStaticPaths #1036

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

XaaXaaX
Copy link
Contributor

@XaaXaaX XaaXaaX commented Dec 17, 2024

@boyney123 edit:

Thanks @XaaXaaX for the script, helped a ton finding some performance issues.

I managed to save some time on the build just caching data during the getStatiacPaths, when we fetch the resources (events, services etc), we only do this once now and return the cached value.

From initial results this reduced build time of 6000 catalog from 657s to 121s about a 80% gain.

Motivation

(Write your motivation here.)

@XaaXaaX XaaXaaX requested a review from boyney123 as a code owner December 17, 2024 01:11
Copy link

changeset-bot bot commented Dec 17, 2024

🦋 Changeset detected

Latest commit: 36ba6ec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eventcatalog/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@boyney123 boyney123 changed the title chore([perf]): add big catalog generator script to bench perf Cache data during build time for getStaticPaths Dec 17, 2024
@boyney123 boyney123 merged commit 9f960c8 into event-catalog:main Dec 17, 2024
4 checks passed
@XaaXaaX XaaXaaX deleted the chore/add-big-catalog branch December 17, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants