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(gatsby): Optimize creating many child nodes from one parent #35504

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7a45d61
feat(gatsby-transformer-json): Speed up creating nodes for arrays
KyleAMathews Apr 27, 2022
f85f07b
100 is about 33% faster than 1000
KyleAMathews Apr 27, 2022
c409697
Add type cache
KyleAMathews Apr 27, 2022
a761e9c
Merge branch 'master' into faster-transformer-json
KyleAMathews May 31, 2022
880951e
Fix creating IDs for nodes
KyleAMathews May 31, 2022
7ceceea
Debounce writing updated parent node
KyleAMathews May 31, 2022
cbfe597
Invoke on leading and trailing to ensure the parent node's children a…
KyleAMathews May 31, 2022
74e12dc
Fix key for debounce fn
KyleAMathews Jun 1, 2022
6fa9892
batch actions instead of timeout on writing
KyleAMathews Jun 1, 2022
27ff437
Keep old behavior for tests
KyleAMathews Jun 1, 2022
81e96b6
Setting batch count of 1 seems to work
KyleAMathews Jun 1, 2022
bc76325
Merge branch 'master' into faster-transformer-json
KyleAMathews Jun 13, 2022
cc04b88
Merge branch 'master' into faster-transformer-json
KyleAMathews Jun 14, 2022
ce78af4
Merge branch 'master' into faster-transformer-json
KyleAMathews Jun 29, 2022
62f56da
Merge branch 'master' into faster-transformer-json
KyleAMathews Jul 28, 2022
e579e74
Merge branch 'master' into faster-transformer-json
KyleAMathews Oct 12, 2022
80b449f
Merge branch 'master' into faster-transformer-json
LekoArts Dec 9, 2022
f2dd1ff
fix csv transformer
LekoArts Dec 9, 2022
f8dcb3c
remove unnecessary await
LekoArts Dec 9, 2022
9485ac0
correct typescript
LekoArts Dec 9, 2022
8e9b755
fix csv tests
LekoArts Dec 9, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,11 @@ Array [
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWillBeThis",
"parent": null,
Expand All @@ -327,13 +325,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWillBeThis",
"parent": null,
Expand All @@ -359,13 +355,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWillBeThis",
"parent": null,
Expand Down Expand Up @@ -438,13 +432,11 @@ Array [
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWillBeThis",
"parent": null,
Expand Down Expand Up @@ -517,13 +509,11 @@ Array [
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWillBeThis",
"parent": null,
Expand Down Expand Up @@ -734,13 +724,11 @@ Array [
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand All @@ -766,13 +754,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand All @@ -798,13 +784,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand Down Expand Up @@ -879,13 +863,11 @@ Array [
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand All @@ -911,13 +893,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand All @@ -943,13 +923,11 @@ c,23",
a,65
b,42
c,23",
"dir": "<TEMP_DIR>/foo/",
"extension": "csv",
"id": "whatever",
"internal": Object {
"contentDigest": "whatever",
"mediaType": "text/csv",
"type": "File",
},
"name": "theTypeWontBeThis",
"parent": null,
Expand Down
Loading