-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
293 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@data-client/endpoint': minor | ||
'@data-client/rest': minor | ||
--- | ||
|
||
Query works with any Schema - including Collections | ||
|
||
```ts | ||
export const queryRemainingTodos = new Query( | ||
TodoResource.getList.schema, | ||
(entries) => entries && entries.filter((todo) => !todo.completed).length, | ||
); | ||
``` | ||
|
||
BREAKING CHANGE: Query.schema internals are laid out differently |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
de19d0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
normalizeLong
217
ops/sec (±2.41%
)271
ops/sec (±0.41%
)1.25
infer All
4607
ops/sec (±0.38%
)5424
ops/sec (±0.44%
)1.18
denormalizeLong
156
ops/sec (±0.79%
)176
ops/sec (±0.84%
)1.13
denormalizeLong donotcache
397
ops/sec (±0.24%
)460
ops/sec (±0.19%
)1.16
denormalizeShort donotcache 500x
684
ops/sec (±2.00%
)798
ops/sec (±3.14%
)1.17
denormalizeShort 500x
507
ops/sec (±1.58%
)591
ops/sec (±0.14%
)1.17
denormalizeLong with mixin Entity
154
ops/sec (±0.85%
)169
ops/sec (±0.87%
)1.10
denormalizeLong withCache
3185
ops/sec (±0.11%
)3616
ops/sec (±0.14%
)1.14
denormalizeLongAndShort withEntityCacheOnly
792
ops/sec (±0.48%
)866
ops/sec (±0.36%
)1.09
denormalizeLong All withCache
4228
ops/sec (±0.27%
)4821
ops/sec (±0.18%
)1.14
denormalizeLong Query-sorted withCache
3824
ops/sec (±0.43%
)4560
ops/sec (±0.30%
)1.19
getResponse
2916
ops/sec (±2.27%
)3587
ops/sec (±2.70%
)1.23
getResponse (null)
1875235
ops/sec (±0.09%
)2228883
ops/sec (±0.13%
)1.19
getResponse (clear cache)
147
ops/sec (±0.42%
)158
ops/sec (±1.59%
)1.07
getSmallResponse
1451
ops/sec (±0.13%
)1613
ops/sec (±0.38%
)1.11
getSmallInferredResponse
1230
ops/sec (±3.34%
)1364
ops/sec (±0.24%
)1.11
getResponse Query-sorted
365
ops/sec (±1.94%
)400
ops/sec (±1.59%
)1.10
setLong
215
ops/sec (±3.11%
)266
ops/sec (±0.62%
)1.24
setLongWithMerge
98.86
ops/sec (±0.58%
)114
ops/sec (±0.51%
)1.15
setLongWithSimpleMerge
110
ops/sec (±0.55%
)127
ops/sec (±0.64%
)1.15
This comment was automatically generated by workflow using github-action-benchmark.