Commit 4ef76bb
perf: Optimize updateCellBatch via prepared statement reuse in nativeWorker
Updates updateCellBatch to group by column and operation and pass a
`paramsList` to the native worker `execBatch` API. This allows the worker
to prepare a single UPDATE statement and execute it multiple times for each row,
significantly cutting down parsing overhead compared to individual UPDATE
statements for each cell update.
Co-authored-by: zknpr <96851588+zknpr@users.noreply.github.com>1 parent 189aee5 commit 4ef76bb
2 files changed
Lines changed: 34 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
435 | 448 | | |
436 | 449 | | |
437 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
| 1073 | + | |
1074 | 1074 | | |
1075 | 1075 | | |
| 1076 | + | |
1076 | 1077 | | |
1077 | | - | |
1078 | | - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1079 | 1084 | | |
1080 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1081 | 1089 | | |
1082 | | - | |
1083 | 1090 | | |
1084 | | - | |
| 1091 | + | |
1085 | 1092 | | |
1086 | 1093 | | |
1087 | | - | |
1088 | 1094 | | |
1089 | 1095 | | |
1090 | 1096 | | |
1091 | | - | |
1092 | 1097 | | |
1093 | 1098 | | |
1094 | | - | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1095 | 1105 | | |
1096 | 1106 | | |
1097 | 1107 | | |
| |||
0 commit comments