Commit 7bebbb6
committed
fix(coprocessor): eliminate db contention between the two workers in sns-executor
Each worker performs write operations on non-shared database tables.
The executor do updates to pbs_computations and ciphertexts,
while the uploader only updates the ciphertext_digest, thus
optimizing overall performance by reducing write conflicts.
In addition, the executor does a garbage collecting for any uploaded ct128.1 parent 14d144f commit 7bebbb6
11 files changed
Lines changed: 109 additions & 77 deletions
File tree
- coprocessor/fhevm-engine/sns-executor
- .sqlx
- src
- bin
- utils
- tests
Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | | - | |
98 | | - | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
101 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
110 | 144 | | |
111 | 145 | | |
112 | 146 | | |
| |||
128 | 162 | | |
129 | 163 | | |
130 | 164 | | |
131 | | - | |
| 165 | + | |
132 | 166 | | |
133 | 167 | | |
134 | 168 | | |
135 | 169 | | |
136 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
137 | 175 | | |
138 | 176 | | |
139 | 177 | | |
140 | | - | |
141 | | - | |
142 | 178 | | |
143 | 179 | | |
144 | 180 | | |
| |||
241 | 277 | | |
242 | 278 | | |
243 | 279 | | |
244 | | - | |
245 | | - | |
| 280 | + | |
246 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
247 | 292 | | |
248 | 293 | | |
249 | 294 | | |
| |||
292 | 337 | | |
293 | 338 | | |
294 | 339 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 340 | | |
299 | 341 | | |
300 | 342 | | |
| |||
336 | 378 | | |
337 | 379 | | |
338 | 380 | | |
339 | | - | |
340 | | - | |
| 381 | + | |
| 382 | + | |
341 | 383 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
357 | 393 | | |
358 | 394 | | |
359 | | - | |
360 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
361 | 398 | | |
362 | 399 | | |
363 | 400 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 132 | | |
145 | 133 | | |
146 | 134 | | |
| |||
229 | 217 | | |
230 | 218 | | |
231 | 219 | | |
232 | | - | |
| 220 | + | |
233 | 221 | | |
234 | 222 | | |
235 | 223 | | |
| |||
0 commit comments