From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SB83B662FGHNeQEAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 07:50:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IBL4Aq62FGEFdQAAB5/wlQ (envelope-from ) for ; Thu, 12 Aug 2021 05:50:38 +0000 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 2DB4F76D6 for ; Thu, 12 Aug 2021 07:50:37 +0200 (CEST) Received: from localhost ([::1]:39996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE3bw-0003hF-7D for larch@yhetil.org; Thu, 12 Aug 2021 01:50:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE3bO-0003h7-Ot for emacs-orgmode@gnu.org; Thu, 12 Aug 2021 01:50:02 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:43974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mE3bN-0000ZC-6S for emacs-orgmode@gnu.org; Thu, 12 Aug 2021 01:50:02 -0400 Received: by mail-lj1-x22b.google.com with SMTP id x7so8810949ljn.10 for ; Wed, 11 Aug 2021 22:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vJwDoFX8i2MCtEy1yLrVYSpv5gnt6NtKRGb+czWCwB4=; b=JU8K/7vC9iW9YM28ZoOwfUcZezUrpf/xEwmZGxWjWhXdAQ4LXgchm7R8Y2MB/g1qNZ YYZTp6VqukuK4bwXjv20irb56uXsAKHaN8EKpShf99kdfNCgnTQyZs+AUOsh0PfCP1OW SDiY/8rVKkL7KxN6y+DapdGQf4H7uJVI8LuhD0H4MKd9iUmXH4lt/s+Y73hLFeMZoCdS yjYCozOQpu7+feRqbmj6xy9rGmAjL/9/EVTb/DynoMAD2K7MvWHmUNrMfYSZeKXD0+CS gJrkrtc2ddAPwnmt+oWh5/Y7ZTXDe0Ykvh5lL+HwjlHPNp+13S0rvT1u0AbezWHrXKIK PQ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vJwDoFX8i2MCtEy1yLrVYSpv5gnt6NtKRGb+czWCwB4=; b=tfkwHkZz2MNwxHv2xaB4bx2zsMhvPLG/gaH5pjsNirNniFA/DyQV7g2OWVWXhWDFln 2dZkfrGVjbxxdaoBXXZn4tRaEUMwCTXzSqLjlS6jt0wTkuTuJLM6Nhp48qJtemeooyzj sRh/HD4/DovmuN5KqzebYXSNChOFFdX/yAYnHcyMuDLrhD9b/2WKXMzxJIPlV9rfK+gw IsaZwNz4mrlmMIWgopzB9g/OzkUVOLremNVsBmEwcQK15+4/RwTXNZO4dMdQ5YvX90KX Vevq/I+iYaaTl6P08Ifwvjgmgt9IAGsou/zlSfxDoYAZfbUU1IjmoNGEalmfr3HaHxAO xyew== X-Gm-Message-State: AOAM532l9qN7xtBEpNxNwB+GXmjGK+abg4yiBKjxvD18AtnnRNwHiL2U DayhAQEiu4tjc9GDKICPeU8FSIh20Nxm8CstIro= X-Google-Smtp-Source: ABdhPJwu7y8CXy9lSbis155M98CnRX/jBMNdVTEO9aOKPbr6auJ/4NuJ2YFa/iS913lsYQjTcuSF1ayCA1hEudjA5YI= X-Received: by 2002:a2e:b552:: with SMTP id a18mr1675994ljn.101.1628747399062; Wed, 11 Aug 2021 22:49:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab3:428e:0:0:0:0:0 with HTTP; Wed, 11 Aug 2021 22:49:58 -0700 (PDT) In-Reply-To: References: <87wnos8vqi.fsf@localhost> <87tujw8orc.fsf@localhost> From: Samuel Wales Date: Wed, 11 Aug 2021 22:49:58 -0700 Message-ID: Subject: Re: archiving speed [was Re: Tips on maintaining history in Org Mode] To: Tim Cross Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=samologist@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-mode , Ihor Radchenko , David Masterson Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628747437; 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=vJwDoFX8i2MCtEy1yLrVYSpv5gnt6NtKRGb+czWCwB4=; b=LJ2FuC9nLNL+cZspDNdkvlpSlJPMkv4xpXvvyJISUze1UYxAyW9nRUcLLvn80AhMFWLpQv u8uZrgPnMCzijjlC+Cr1pePGmhJuzc4Buj1Io1dbQygz+LQvxyx+GM5TR2LBGPumB+n7oU OzY7IggQ6A0td7WnWG7oTWYmnNeMi5luSI18vy7l52uPSVzLKQjfMF97yFv7T9LUS6lN07 /xEbcnk1XInmK7wfbPCyiuxCrVOpNObyleD5Z5OCIhWGMhKvCV8GeA8WMBWFMWpab194qH uCfRfdk92ej7q9CQvP6fwFLVIkj7d0zmxaCkXnxKPjeCK+DDv9HAWt9nl1BckQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628747437; a=rsa-sha256; cv=none; b=IoL5ARTu0pSKEPOuKJyCzJ0UlIWe3DHgRyf/Jmny4PFdj6Xla+3G1BoOQthExiMdKgsHSe jmxwIZ5BySA00znjvCcbc6hc5Y1H4LIOGmZ//u8UvHs4E8k+WYZfrqONzwNgji+O1anMXf /6qHXNU8VaepQagqWPfnqW+ZNEZSi+ehTbZF/yEtaI7xh/f8VpQF2KiGmIdl/qvDySNafC id4dQBn5xD1FxLpLCc8f1hFfMQzIkPTiOqexxNOKfW2d6OxdVNjOXjfFt7WC0CDczlU4uw 8YLuuNZIKzPyYQ2wizUkquoNzLiceNoCpqfPyNWotSirGupc1t/wPbrLiw5nGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="JU8K/7vC"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="JU8K/7vC"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2DB4F76D6 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: SMnx1XQ5fJpv what is the current status of hierarchy in archive files? surely they don't deal with updating categories and updating hierarchy structure [sounds brittle and syncy]? i'm thinking it isn't hierarchical at present, except when you have a doneified task with children? On 8/11/21, Tim Cross wrote: > I think the problem with just using append to file is that it won't > preserve the shape of the file. For example, if I had a file with > > * Notes > ** Note 1 > blah blah > ** Note 2 blah blah > > * Tasks > ** DONE task 1 > ** TODO Task 2 > > and I decide to archive note 1 and task 1, I would like them to both appear > under the same headings and with the same level. If the process just uses > append to file, I can have this for the first archiving i.e. > > * Noes > ** Note 1 > > * Tasks > ** DONE task 1 > > but then later, I decide to archive note 2, if append file is used, I will > end up with > > * Notes > ** Note 1 > > * Taks > ** DONE task 1 > > * Notes > ** Note 2 > > which is not what I want. I want > > * Notes > ** Note 1 > ** Note 2 > > * Tasks > ** DONE Task 1 > > So, if we want to preserve hierarchies in our archive files and not have > everything jumbled up together, the system has to parse the file. If you > are also using something like Categories, then even more work needs to be > odne to update the category lists. > > What I tend to do is mark items with the ARCHIVE tag and leave them in the > file and then every few months, move archived data to archive files. It > can still get slow, but I don't do it often, so it isn't too much of a > hassle. > > > On Thu, 12 Aug 2021 at 08:23, Samuel Wales wrote: > >> thanks for the clarification. are you saying that, for every archived >> entry, it calculates teh category property, using the original org >> file, in order to add a category property to just one archived entry? >> >> that would certainly slow down more and more, but it sends me back to >> my question about whether append to file would work. >> i.e. build the single entry in a temporary buffer then write that >> region to a file on disk. >> >> On 8/10/21, Ihor Radchenko wrote: >> > Samuel Wales writes: >> > >> >> i should clarify. bulk archiving slows down even with /nonexistent/ >> >> (have not tried empty) archives. as part of normal and expected >> >> operation, bulk creates the archive for the first entry, and then >> >> subsequent entries are added. those get slower and slower. >> > >> > That's what I suspected. I also see this and my suggestion helped >> > archiving speed in my case. >> > >> >> i use (olpath category itags). i will try (file time) when i can, if >> >> that still applies. my brain needs to be more operational. >> > >> > When you use category, every time you modify the original file (not the >> > archive!), Org mode re-calculates *all* the categories in the original >> > Org file. It happens for every single archived heading. If your >> > original >> > Org file is large, re-calculations make things extremely slow. >> > >> > Best, >> > Ihor >> > >> >> >> -- >> The Kafka Pandemic >> >> Please learn what misopathy is. >> >> https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html >> >> > > -- > regards, > > Tim > > -- > Tim Cross > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html