Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w41RO-001n3e-0D for pgadmin-hackers@arkaria.postgresql.org; Sat, 21 Mar 2026 18:52:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w41RM-00BMzk-1n for pgadmin-hackers@arkaria.postgresql.org; Sat, 21 Mar 2026 18:52:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w41RM-00BMzb-15 for pgadmin-hackers@lists.postgresql.org; Sat, 21 Mar 2026 18:52:52 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w41RJ-00000000O0Z-0uUa for pgadmin-hackers@postgresql.org; Sat, 21 Mar 2026 18:52:52 +0000 Received: by mail-ej1-x644.google.com with SMTP id a640c23a62f3a-b93698bb57aso584703366b.0 for ; Sat, 21 Mar 2026 11:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774119167; cv=none; d=google.com; s=arc-20240605; b=PQPDO0kvUC+ogcD5l3nZGGZps78i6TkUAeHaNqO6Bvi0lu2yuqGi5Mq4EOqAIVSIsT lVRJ0GPih7u+C1m+/7HBBVPttXfms1Mz1gIanv0UBeuoS2QlI3l5vxotDrE6Sb132Isu dVM+Ae6Z+dMJwbvfQpGleT1YyrBCryKHKJfUt/BkXOukEo+bGv/Vnqvo+kymLYfcq0Qg kr7eoeZXAHIdOiYbKVKBo6TUGVRJy+ezJNzuLfj7Gq+uIi8G0zFN1MXK16ztcNaqMis0 bzTQeV6kd5+mKnN+wk/WSUkbVTwnz1G/0MufL4diwZLeobx0g9mic2QoAfT89T60Sm2q mS8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=+SY1ukPIX/E7eJ9wh105x0mBGVpEfCKmOYwO+842yGc=; fh=SSPKzWDQQUyYAi/7LBVTTqRiHKmVMEvBJ55LfXPEFw8=; b=db5VMV4Ln+kf9MC6B1z9MeMkkN74TmWtRUKor51c7aAGmDFN7hrhRyU1s8FB/DPraM qqYXAj47kvxXjDAis19V5kmJpdXi0ac57ZdNqNhsG9JvzblXTT8kc4cEI0qx3SJBlBUJ Ge3MD3oCKxAsZbn5AiBZDzryG4kAWKWYxmiNaYan6NvPiHxR+4wCUkYud64rE73ZepAz XteN9ZrlNr5FfJBL8C2ytxzHfsW3ApvxkQJqvXgI4+dRUMTiGP/Cae4ogCiaovdAw5vv fZH7E0VBDPVYrr+66zA9fbZFU1Yl5dstPMkcHxp0q4dbvKU11a5zvBtqHUQPP5iR1/QM Rr+Q==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774119167; x=1774723967; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+SY1ukPIX/E7eJ9wh105x0mBGVpEfCKmOYwO+842yGc=; b=VdOjmkbkoEJIFIyxwrENcw1DIC4WDFhxJRJIqWBneQQIbLabLDdi0S4UasG/AbdXj5 7TjzmKjqZEJRvu6Web3B4AuqDsHkpzx52r1WsZX3R94uivft4rU0+qS+twB+wpiRgoup TKy93qSlrIPTRuJPog4s99M5Z7atWUmUGIiohkRQr8w2z+Pq1N6JWXqhGmN4HRNPx5/U mEp3UthLst+KIzaKt7pQwFUOvsSLRdYMxGm6CNlZADMdnrb3YL7TKVw8rAF4xSUmgtvW aKbdRrTghxaldGJp+5o2ToieDWzpOKRQ2Oflze8KHdcJ07XvTz8dqk58aFdAfEG1C+i2 LOtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774119167; x=1774723967; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+SY1ukPIX/E7eJ9wh105x0mBGVpEfCKmOYwO+842yGc=; b=JPeGU7ZUA3oqpxXYLa8JdNiSX4cCG8lJ9aPuFFSdjj5HhZkqMhWoVztzgcMH3D2/JS PMFbXnvmw/DQ0I1Oh38flwi04Yf4ddND+ECJwobh++Jw8+kl8PrRjbW6K669DM9hV1XJ BD+zZ4NLWtvl33fwj35RksovCTrBtQwhMwkBMGGT4EZNgOvaam62v3eyIhxFDB/FQvsS E8fXI9ZyVTyvDVdV3vRwBpCuvqQO482BdJ/aEt0Mc7mp8vFlpTwwUBpv6FSwzWlz5g67 TCVQbVfNbmpY02LJpvAx8NbjElSkBrz2rb7X1tLCO339OKXvgTSRbpVfvwWBMkh4NocB AaFA== X-Gm-Message-State: AOJu0YxUBU1bOhi82qFAqLG+Dtma7rMcbt821za0DjnYWnJUvG9uRl+e up13GHR4IC1lMn+/i/3oT9aP8nDf5cG+9mGwStAZTyZ7m9CXOfhvQSbm5xle81KwUTZIo5oA36l RnFtyQWM7UE48Z3yWiJMmPwK7sC/jVfjXtSO59r8bUQ== X-Gm-Gg: ATEYQzzFxTuSk2dcjNfbs9R3iP+SuQMVwaJHU+NVVr65fxvmjqCzpDHtR8Ei92d/Mvv Z694hrbVSmXRG8rlNa8snwf8faWjXdX88yqizFjXevidD+azPPm58mfIK7AQABccQkEPraG1c8S /agBcA4dnC18E6pyJXrAuuqfr6wONgQWw7nz6Wk7diujLKo6qgN17g/D6Hz8CfIzL/g+YRRGBwe XKX/MUBCt7UdHWOyl6RNfyd5Szu9mOrKaFf9pRnLhohMp7Oe8ljJd5GAeLNC1EqGxbWqaPEa2Ii 8mWArTSCUrgXwoSM1uyntp39H0EZUqK8Oxci+IS997ThmkD5WkhzkDN68B9IjtRaINGA5w== X-Received: by 2002:a17:907:dab:b0:b94:231f:26ca with SMTP id a640c23a62f3a-b980fa62d88mr729497766b.20.1774119167225; Sat, 21 Mar 2026 11:52:47 -0700 (PDT) MIME-Version: 1.0 From: Hari Prasad Date: Sun, 22 Mar 2026 00:22:35 +0530 X-Gm-Features: AaiRm53Ty3pU91AHPGxSW0v8GWj2SycnS5AGsBPVF6u-1rdrAFfJxPAVWudN-Og Message-ID: Subject: [pgAdmin] Startup speed improvements + identified bottlenecks (related to issue #9770) To: pgadmin-hackers@postgresql.org Content-Type: multipart/alternative; boundary="000000000000c073ee064d8d4e5f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c073ee064d8d4e5f Content-Type: text/plain; charset="UTF-8" Hi, I have been looking into *pgAdmin desktop startup performance and identified multiple bottlenecks in the startup path. *A quick summary: - Synchronous DB migrations blocking startup - Redundant table validation on every launch - Eager loading of all modules/blueprints - Driver/auth registries loaded upfront - 1s polling delay in backend readiness detection - Sync logging during startup As a first step, I have implemented a small fix for the polling issue (adaptive polling instead of fixed 1000ms), which improves responsiveness without touching backend logic. *Also, the startup feels noticeably slower *than expected due to the amount of synchronous work being done upfront, which is what led me to dig into this. *Before opening a PR *for this change, I wanted to check if this approach is acceptable. This is *part of ongoing work around issue #9770 , *and I plan to address the other bottlenecks incrementally. Thanks and regards Hari --000000000000c073ee064d8d4e5f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I have=C2=A0been looking into pgAdmin deskto= p startup performance and identified multiple bottlenecks in the startup pa= th. A quick summary:

- Synchronous DB migrations blocking startu= p
- Redundant table validation on every launch
- Eager loading of all= modules/blueprints
- Driver/auth registries loaded upfront
- 1s poll= ing delay in backend readiness detection
- Sync logging during startup
As a first step, I have implemented a small fix for the polling issue= (adaptive polling instead of fixed 1000ms), which improves responsiveness = without touching backend logic.=C2=A0Also, the startup feels noticeably = slower than expected due to the amount of synchronous work being done u= pfront, which is what led me to dig into this.

Before opening a P= R for this change, I wanted to check if this approach is acceptable.
This is part of ongoing work around issue #9770, and I plan to address= the other bottlenecks incrementally.

Thanks and regards
Hari
--000000000000c073ee064d8d4e5f--