Skip to content

Performance & Optimization

  • Asynchronous execution: Queries run non-blocking via vim.system; track active and past jobs in real time with :TDJ.
  • Result limits & full exports: Use retlimit (default 100) to cap returned rows for preview. For large datasets and multi-million row queries, use background TPT Full Exports (:TDExport or F in result grids) to stream directly to disk via TPT (tbuild) without loading heavy data into Neovim memory.
  • Timeout control (timeout_ms): Set timeout_ms to automatically cancel long-running BTEQ jobs and prevent orphaned processes.
  • Catalog filtering (filter_db): Use filter_db to filter which databases are imported during :TDSync. On enterprise systems with thousands of schemas, this drastically reduces sync duration and memory usage.
  • Incremental metadata sync: Instead of running a full :TDSync across every catalog, use incremental sync (:TDSync add or :TDSync update) to sync individual tables or schemas in seconds.
  • History pruning (history_max): Use history_max to cap stored queries and result sets on disk.