From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CNa/G4ii8GVHGgEAqHPOHw:P1 (envelope-from ) for ; Tue, 12 Mar 2024 19:44:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CNa/G4ii8GVHGgEAqHPOHw (envelope-from ) for ; Tue, 12 Mar 2024 19:44:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VYAbTSdX; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710269063; a=rsa-sha256; cv=none; b=vCYR/sTQdvCiiQLChcNov1mlrV6p8tBWwE62I1Ocg+U2NoeZzB+X9yC9eZON4ePMVuCkTl W0pf5bXWMk5ygZ1oLpUDGa00bU0fPtDMl5dnQoRxf3nh2AcrBihVCNru2CwpbG7BvP/wWM d210F/fbYaUepEvlTygUMpcMXabzHdUzxwq20zFXxFYnTj61C1fXN3JOKeJ6nFpYQg9t4m OrLs4wrIn9QyBFkO1U2yleLvQ8yEkieSjpJVFo9HKZnGEx4geRb9VvX4Kv3YrFyFnIrfSH pyCmSIrIktMNkES16G0onKBNbcDoiMVWn8me1X/h4cWKciTODSiaIGuIzD/olw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VYAbTSdX; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710269063; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8aYLE+/N47gFM6dL1biKIRP/pZj5vmTeZDFYDmsntt4=; b=fPsN5t6K85K25pGUbMbSjxkuoDFmHbvmf98FUaw4Dsc60OJ0Dhlj53GjHpWqh07zaDNiPn dEzU8FfX9DsWGNc4N/tkIYAJiIoOnTLA2pWG1uTpMSmGvEH9Cs99fBlYj/weo2+BYlcD8Y WsNDmtSniVnG3Abx5EBJyi+Gb07yRCF51zSeDU/yNhib+r1rRjO5r5g2ZQxAGIjK3v8Dts SVjjFaKs1mem1sfIlnU3ofv1I5ocj/oHsm+S6QqTh7Yb+1W4WSyEM1bUPGM7vk1fE3okT+ e0Czf0PqxtxXU4tDL6doTOHpMKTNuZ2Ynvt1QO+G1RpRdWaUvgM9uRoEDwDG3g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56F8024564 for ; Tue, 12 Mar 2024 19:44:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk76C-0005YL-0c; Tue, 12 Mar 2024 14:43:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk760-0005WH-DE for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 14:43:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk75y-0001VP-72 for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 14:43:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6A977240101 for ; Tue, 12 Mar 2024 19:43:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710269002; bh=LlUAABYr9dVdtM1ncwNMNoSf9JM9f5I3xuoaTkJbdfM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VYAbTSdX2qiGnd7cnFHGLfZkD8IIlG4oMJ2V650RLoid4D+X8Cp7ix8k6QpRrysHH DzWSivOUo27xeFgcd9vdTKhCW5YHOdScJwvjXzfbhpN2fr+QIpSQSifzQ0iUg3zpLL V1HwU+K8xb56lOXYg2K7YkMv0e2GkeR7JkMn9y50wbeDyEiuzPBXolBBr3IH+5fr2t fBHeJfCHcFcuyvc8XFVa9/8BMa6MsooIN3AStQksjMdDpMSY3Iuj7fEUluomVzpEVW +c9DRFIeb7d9aMh01PD5ihbqKoKu470UFbDmR0FjXkh2seYkphya7wC60DH778lcpK JOGxfnsiWmc5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TvMwT43Wyz6tm8; Tue, 12 Mar 2024 19:43:21 +0100 (CET) From: Ihor Radchenko To: yeti Cc: emacs-orgmode@gnu.org Subject: Re: org-id-locations as a large-scale database store? In-Reply-To: <87cyrz2t5f.fsf@tilde.institute> References: <87h6hb2y57.fsf@tilde.institute> <87jzm7jrjj.fsf@localhost> <87cyrz2t5f.fsf@tilde.institute> Date: Tue, 12 Mar 2024 18:47:29 +0000 Message-ID: <87h6hbjni6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.49 X-Spam-Score: -5.49 X-Migadu-Queue-Id: 56F8024564 X-TUID: v570oAYnWQ7J yeti writes: >> Does org-brain have anything to do with org-id-locations? > > I think so... > > E.g. org-brain.el 788-794: > > -------------------------------8<--------------------------------------- > (defun org-brain-entry-from-id (id) > "Get entry from ID." > (unless org-id-locations (org-id-locations-load)) > (when-let ((path (gethash id org-id-locations))) > (list (org-brain-path-entry-name path) > (org-brain-headline-at (org-id-find id t)) > id))) That's redundant. Calling `org-id-find' would suffice (org-id-find internally arranges org-id-locations to be updated). In any case, loading and searching id locations scales well for thousands of entries - I currently have 60+k entries there without issues. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at