From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 mOQNBzmh8GUrUwAAe85BDQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 19:38:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mOQNBzmh8GUrUwAAe85BDQ (envelope-from ) for ; Tue, 12 Mar 2024 19:38:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=tilde.institute (policy=none); 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=1710268728; a=rsa-sha256; cv=none; b=mI0Ch1SFPu6Rc6sNYZUx6yOP6y4WQRyOCYUpMZOkfQeflHWfs0EcnF2uKmHMekJYvlsxyt wES9vF188wfF4mN0u1y/SrGiIdZNkHfHTfo7GEpENLW3mgVHEpSUbw/pHP9nU57PL7d8I3 Q1VUXc4Y5HVvfIiQbcks2fAqO/bLm+Mu14dRkwxeWjOLjAmYeV6uENjgFSmR0XgpZkwANk 5dUkXcrA8UlsNaFVGT47fZRGCPODncTUCGO9Y6sY8sPHPXxIFTSxvZRsgTi036yEDwkgh0 fIckpRzySX56MmiG3NtOPyNdOaVNGhKwIb9tpqiv1miM06lkUQ91QDHfiJV4Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=tilde.institute (policy=none); 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=1710268728; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4ZDTHOuBVD46BTIpUbD7huuFEkArIhl6AbG61I+rSO0=; b=Ev+DmGiCxSgVgb1mxeZwbAp4Zcc+3Kkl7cwjOE+r1Bh/l8YecLa+BNKFsuXKzcw8Hp1/dA bgdmn1h+Xsaex4RLmZgBstS4+xxeVRNX2cHrMcFwP9nxF/CCRc6nTtQU5qmlTT/a8St9qa Ft/EOZUxZVQi8b29y2K0yRhySVU4Bg0Bnr9KLp2cXUIoR08P2Pf3/tjNgUh3uVzALzo6Uo zs5zMCHRUvDTL5U/OIvb/fzWgEYjbpET+aoBic7NRcHScvVmwasxG/UVXF/w8d0X1K3g4h 2j1QdKiMmcsaxeVjL5FYqHvmEYnMHx00Vw14fTgDsjwOpdLoSrwmTdblOJT0UA== 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 CA3DF243B3 for ; Tue, 12 Mar 2024 19:38:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rk70k-0003LH-8K; Tue, 12 Mar 2024 14:38:02 -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 1rk70a-0003KM-G6 for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 14:37:53 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rk70V-0000an-0n for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 14:37:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rk70R-0003IS-1M for emacs-orgmode@gnu.org; Tue, 12 Mar 2024 19:37:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: yeti Subject: Re: org-id-locations as a large-scale database store? Date: Tue, 12 Mar 2024 19:19:32 +0042 Organization: Democratic Order of Pirates International (DOPI) Message-ID: <87cyrz2t5f.fsf@tilde.institute> References: <87h6hb2y57.fsf@tilde.institute> <87jzm7jrjj.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:jPMtdXomzs1lfXnCIH2SquJsJnY= X-Face: ]_G&_b@O$RF(L7zT; DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b; 26e 5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE `B 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: 3.21 X-Spam-Score: 3.21 X-Migadu-Queue-Id: CA3DF243B3 X-TUID: y9VXEW7dE7hw Ihor Radchenko writes: > yeti writes: > >> Laurence von Bottorff writes: >> >>> So again, is this org-brain approach DOA for anything big? >> >> I like it, but even my small pool of notes is slow with org-brain. >> >> -------------------------------8<--------------------------------------- >> ~ $ hash-table-size $org-id-locations >> 1322 >> ------------------------------->8--------------------------------------- > > 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))) ------------------------------->8--------------------------------------- -- I do not bite, I just want to play.