Skip to content

Worker level optimization - #25

Merged
mbakli merged 10 commits into
mainfrom
worker_level_optimization
Jul 21, 2026
Merged

Worker level optimization#25
mbakli merged 10 commits into
mainfrom
worker_level_optimization

Conversation

@mbakli

@mbakli mbakli commented Jul 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

mbakli added 10 commits July 15, 2026 21:46
… issues

New tiling_method => 'hierarchical': splits the temporal extent into
equi-count periods, then Z-order-buckets each period's trajectories into
equi-count spatial chunks (num_periods/tiles_per_period auto-derived from
num_tiles). Originally Citus-distributed the per-period assignment table for
cross-worker concurrency, but that corrupted worker connections under load
(reproducible at num_tiles=8+); reverted to a plain local table using
intra-node parallel workers instead, verified reliable up to 16 tiles.

Also, while building and testing the above:
- Fix segmentation_and_allocation silently no-op'ing for sequence/sequenceset
  columns (substitution pattern never matched table-prefixed column refs) --
  trajectories now genuinely clip via atStbox instead of copying through
  unclipped.
- Fix shape_allocation missing a sequence/sequenceset branch (the "replicate
  whole trajectory into every overlapping tile" path errored out for
  MobilityDB tables), and tiling.segmentation never being set when
  shape_segmentation => false was passed.
- Fix ORDER BY re-wrap in ConstructGeneralQuery referencing original
  table aliases not in scope after the wrapping subquery.
- Auto-tune parallel-query GUCs for distribution (spec-derived from
  max_parallel_workers, transaction-local) and warn (don't silently change)
  when shared_buffers looks undersized relative to the table being
  distributed.
- LZ4 TOAST compression on distributed output tables' trajectory column.
@mbakli
mbakli merged commit 7d0d37f into main Jul 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant