Commit 7535e33
improvement(mothership): user_table speed parity — limit bounds, async import/delete/update jobs
- query_rows / filter ops clamp limit to the contract maxes; query_rows
skips execution metadata.
- import_file / create_from_file (large CSV/TSV) and delete_rows_by_filter
(>1000 unbounded matches) dispatch background table jobs, claiming the
per-table job slot; inline paths claim the slot too.
- update_rows_by_filter now escalates the same way: >1000 unbounded matches
run as a background table job (new 'update' job type + runTableUpdate worker
+ tableUpdateTask), so a broad update on a huge table no longer loads every
row into the request. Best-effort/non-atomic and skips workflow recompute
(documented); unique-column patches stay inline. Pagination is limit/offset.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent cc56408 commit 7535e33
12 files changed
Lines changed: 1579 additions & 95 deletions
File tree
- apps/sim
- background
- lib
- copilot
- generated
- tools/server/table
- table
- rows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3958 | 3958 | | |
3959 | 3959 | | |
3960 | 3960 | | |
3961 | | - | |
| 3961 | + | |
| 3962 | + | |
3962 | 3963 | | |
3963 | 3964 | | |
3964 | 3965 | | |
| |||
4011 | 4012 | | |
4012 | 4013 | | |
4013 | 4014 | | |
4014 | | - | |
| 4015 | + | |
4015 | 4016 | | |
4016 | 4017 | | |
4017 | 4018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3686 | 3686 | | |
3687 | 3687 | | |
3688 | 3688 | | |
3689 | | - | |
| 3689 | + | |
| 3690 | + | |
3690 | 3691 | | |
3691 | 3692 | | |
3692 | 3693 | | |
| |||
3745 | 3746 | | |
3746 | 3747 | | |
3747 | 3748 | | |
3748 | | - | |
| 3749 | + | |
| 3750 | + | |
3749 | 3751 | | |
3750 | 3752 | | |
3751 | 3753 | | |
| |||
0 commit comments