25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(editor): stop preloading data grid chunk on tab open
Melody Ruch7f7f011f4042
diff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vueindex 242113bbf1..d67d13b812 100644--- a/apps/desktop/src/components/layout/ContentArea.vue+++ b/apps/desktop/src/components/layout/ContentArea.vue@@ -232,12 +232,14 @@ const { toast } = useToast();const DEFAULT_QUERY_RESULTS_PANE_SIZE = 68;onMounted(() => {- const preload = () => preloadDataGridComponent();- if ("requestIdleCallback" in window) {- window.requestIdleCallback(preload, { timeout: 1500 });- } else {- setTimeout(preload, 300);- }+ // Deliberately not preloading DataGrid here for every tab: evaluating that+ // chunk is expensive (large component graph) and previously ran+ // unconditionally shortly after any tab mounted, including source-only+ // tabs (e.g. viewing a large object's DDL) that never need a grid. That+ // turned a "warm the cache" optimization into a multi-second main-thread+ // freeze right when the user was trying to read the newly-opened tab (see+ // issue #8103). The watcher below still preloads it eagerly for tabs that+ // actually need one.window.addEventListener("dbx-refresh-active-kv-browser", onRefreshActiveKvBrowser);window.addEventListener("resize", updateStandaloneResultToolbarDimensions);window.visualViewport?.addEventListener("resize", updateStandaloneResultToolbarDimensions);