Commit 7bd82fb
split hash sets facts into smaller chunks
Summary:
The hack db has this predicate which represents a set of hashes of the input files, in no particular order. It's arbitrarily split into 15 facts (... because there are 15 indexing shards).
```
www.hack.light> :stat hack.IndexerInputsHash
hack.IndexerInputsHash.6
count: 15
size: 129201564 (123.22 MiB) 0.1334%
```
Each of these fact is about 10MB. We've seen query to this predicate failing with an allocation failure error from the server. I'm guessing that making the facts smaller than the pagination limit will enable the server to paginate these results.
The `glean query` CLI has a page limit of
```
- --page-bytes: Default is 1,000,000 (1
MB)
```
This diff constructs the hashes as <1MB facts.
Reviewed By: jjuliamolin
Differential Revision: D92045104
fbshipit-source-id: fd031f98adc120bcb4793f7291616a40398770681 parent e771467 commit 7bd82fb
1 file changed
+35
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | | - | |
81 | 90 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
| |||
0 commit comments