Commit 403f4ff
fix(logs): Correct inverted maxPages condition for infinite query
The ternary condition in maxPagesForLogsInfiniteQuery was inverted. When there are fewer than 500 rows locally, we should use the higher limit (300 pages) to collect sufficient data from sparse logs. When there are more rows cached, use the lower limit (30 pages) to conserve memory.
Also fixed the JSDoc comment on LOCAL_LOG_ROWS_FOR_EXPANDED_INFINITE_PAGES to correctly reference MAX_LOGS_INFINITE_QUERY_PAGES_EXPANDED.
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>1 parent aec7539 commit 403f4ff
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | | - | |
| 417 | + | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
0 commit comments