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

feat: enable lmdb by default and update node #32695

Merged
merged 9 commits into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/gatsby/src/utils/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const activeFlags: Array<IFlag> = [
umbrellaIssue: `https://gatsby.dev/lmdb-feedback`,
description: `Store nodes in a persistent embedded database (vs in-memory). Lowers peak memory usage. Requires Node v14.10 or above.`,
testFitness: (): fitnessEnum => {
if (_CFLAGS_.GATSBY_MAJOR === `4`) {
return `LOCKED_IN`
}

const [major, minor] = process.versions.node.split(`.`)
return (Number(major) === 14 && Number(minor) >= 10) || Number(major) > 14
},
Expand All @@ -224,6 +228,10 @@ const activeFlags: Array<IFlag> = [
description: `Parallelize running page queries in order to better saturate all available cores. Improves time it takes to run queries during gatsby build. Requires Node v14.10 or above.`,
includedFlags: [`LMDB_STORE`],
testFitness: (): fitnessEnum => {
if (_CFLAGS_.GATSBY_MAJOR === `4`) {
return `LOCKED_IN`
}

const [major, minor] = process.versions.node.split(`.`)
return (Number(major) === 14 && Number(minor) >= 10) || Number(major) > 14
},
Expand Down
Loading