From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 80DAA1FF15C for ; Fri, 3 Oct 2025 10:51:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2684B1EC5F; Fri, 3 Oct 2025 10:51:20 +0200 (CEST) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Fri, 3 Oct 2025 10:50:32 +0200 Message-ID: <20251003085045.1346864-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.027 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox{, -backup} 0/7] introduce streaming content api call X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" This series introduces a new api call `content` on a datastore that returns the whole content recursively, including namespaces, groups and snapshots. It's doing that using the async-stream + proxmox-router::Stream, so a client can get the separate records without having to wait for the api call to finish. This is intended to improve ui responsiveness, since we can show things even when it's still loading. This can be very useful for large datastores. This series contains some refactorings that were necessary, but also includes one performance improvement for the `groups` api call (stumbled upon it during testing) proxmox: Dominik Csapak (1): pbs-api-types: add api types for streaming content api call pbs-api-types/Cargo.toml | 1 + pbs-api-types/src/datastore.rs | 99 ++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) proxmox-backup: Dominik Csapak (6): backup: hierarchy: add new can_access_any_namespace_in_range helper backup: hierarchy: reuse 'NS_PRIVS_OK' for namespace helper api: admin: datastore: refactor BackupGroup to GroupListItem conversion api: admin: datastore: factor out 'get_group_owner' api: admin: datastore: optimize `groups` api call api: admin: datastore: implement streaming content api call Cargo.toml | 2 + src/api2/admin/datastore.rs | 340 +++++++++++++++++++++++++++--------- src/backup/hierarchy.rs | 31 ++-- 3 files changed, 281 insertions(+), 92 deletions(-) Summary over all repositories: 5 files changed, 381 insertions(+), 92 deletions(-) -- Generated by git-murpp 0.8.1 _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel