emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tasks with lots of logbook entries are very slow
@ 2014-03-25 15:00 Pere Quintana Seguí
  2014-03-25 18:27 ` Marcin Borkowski
  2014-03-25 18:47 ` Achim Gratz
  0 siblings, 2 replies; 10+ messages in thread
From: Pere Quintana Seguí @ 2014-03-25 15:00 UTC (permalink / raw)
  To: emacs-orgmode

I log most of my work with org-mode. Some of my tasks are repetitive,
this is, I do them weekly or daily (i.e. empty mail inbox). After many
years, the logs are very long. As a consequence, marking these tasks as
done is *very* slow.

Is there a workaround that does not involver deleting the logs?

Example:

**** PNDT Processar la bústia d'entrada
SCHEDULED: <2014-03-25 dt ++1d>
:LOGBOOK:
CLOCK: [2014-03-25 dt 15:31]
- State "DONE"       from "PNDT"       [2014-03-25 dt 15:20]
CLOCK: [2014-03-24 dl 13:21]--[2014-03-24 dl 13:36] =>  0:15
- State "DONE"       from "PNDT"       [2014-03-21 dv 16:18]
CLOCK: [2014-03-21 dv 15:42]--[2014-03-21 dv 16:18] =>  0:36
- State "DONE"       from "PNDT"       [2014-03-20 dj 16:25]

(very long list with log entries since 2009).
:END:

I use org-mode 7.8.11 with Emacs 23.4.1.

Thanks,
--
Pere Quintana
http://pere.quintanasegui.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-25 15:00 Tasks with lots of logbook entries are very slow Pere Quintana Seguí
@ 2014-03-25 18:27 ` Marcin Borkowski
  2014-03-26  8:10   ` Pere Quintana Seguí
  2014-03-25 18:47 ` Achim Gratz
  1 sibling, 1 reply; 10+ messages in thread
From: Marcin Borkowski @ 2014-03-25 18:27 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2014-03-25, o godz. 16:00:01
Pere Quintana Seguí <pere@quintanasegui.com> napisał(a):

> I log most of my work with org-mode. Some of my tasks are repetitive,
> this is, I do them weekly or daily (i.e. empty mail inbox). After many
> years, the logs are very long. As a consequence, marking these tasks
> as done is *very* slow.
> 
> Is there a workaround that does not involver deleting the logs?

Archiving?

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-25 15:00 Tasks with lots of logbook entries are very slow Pere Quintana Seguí
  2014-03-25 18:27 ` Marcin Borkowski
@ 2014-03-25 18:47 ` Achim Gratz
  2014-03-26  8:12   ` Pere Quintana Seguí
  2014-03-26 10:41   ` Eric S Fraga
  1 sibling, 2 replies; 10+ messages in thread
From: Achim Gratz @ 2014-03-25 18:47 UTC (permalink / raw)
  To: emacs-orgmode

Pere Quintana Seguí writes:
> I log most of my work with org-mode. Some of my tasks are repetitive,
> this is, I do them weekly or daily (i.e. empty mail inbox). After many
> years, the logs are very long. As a consequence, marking these tasks as
> done is *very* slow.
>
> Is there a workaround that does not involver deleting the logs?

I've long resorted to using two drawers back-to-back:

:LOGBOOK:
 …stuff…
:END:
:CLOSED:
 …old stuff…
:END:

Now whenever you need to shorten the logbook drawer, just move the

:END:
:CLOSED:

up by however many lines you think it should.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-25 18:27 ` Marcin Borkowski
@ 2014-03-26  8:10   ` Pere Quintana Seguí
  2014-03-26  8:31     ` Peter Neilson
  0 siblings, 1 reply; 10+ messages in thread
From: Pere Quintana Seguí @ 2014-03-26  8:10 UTC (permalink / raw)
  To: emacs-orgmode

El 25/03/14 19:27, Marcin Borkowski ha escrit:
> Dnia 2014-03-25, o godz. 16:00:01
> Pere Quintana Seguí <pere@quintanasegui.com> napisał(a):
> 
>> I log most of my work with org-mode. Some of my tasks are repetitive,
>> this is, I do them weekly or daily (i.e. empty mail inbox). After many
>> years, the logs are very long. As a consequence, marking these tasks
>> as done is *very* slow.
>>
>> Is there a workaround that does not involver deleting the logs?
> 
> Archiving?
> 

No, archiving would'nt work, as I need the task every day.

Thanks for the tip.

Pere

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-25 18:47 ` Achim Gratz
@ 2014-03-26  8:12   ` Pere Quintana Seguí
  2014-03-28  9:38     ` Pere Quintana Seguí
  2014-03-26 10:41   ` Eric S Fraga
  1 sibling, 1 reply; 10+ messages in thread
From: Pere Quintana Seguí @ 2014-03-26  8:12 UTC (permalink / raw)
  To: emacs-orgmode

El 25/03/14 19:47, Achim Gratz ha escrit:
> I've long resorted to using two drawers back-to-back:

That seems to be the most straightforward solution. I'll do that.

Maybe org-mode could do this automatically. A variable would determine
when log entries should be archived in the second drawer.

I would write a patch if I could program in elisp, but I can't. :'(

Thanks,

Pere

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-26  8:10   ` Pere Quintana Seguí
@ 2014-03-26  8:31     ` Peter Neilson
  2014-03-28  9:37       ` Pere Quintana Seguí
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Neilson @ 2014-03-26  8:31 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, 26 Mar 2014 04:10:02 -0400, Pere Quintana Seguí  
<pere@quintanasegui.com> wrote:

> El 25/03/14 19:27, Marcin Borkowski ha escrit:
>> Dnia 2014-03-25, o godz. 16:00:01
>> Pere Quintana Seguí <pere@quintanasegui.com> napisał(a):
>>
>>> I log most of my work with org-mode. Some of my tasks are repetitive,
>>> this is, I do them weekly or daily (i.e. empty mail inbox). After many
>>> years, the logs are very long. As a consequence, marking these tasks
>>> as done is *very* slow.
>>>
>>> Is there a workaround that does not involver deleting the logs?
>>
>> Archiving?
>>
>
> No, archiving would'nt work, as I need the task every day.
>
> Thanks for the tip.
>
> Pere

Perhaps this will help:

Standard method for log maintenance outside of org is to rotate logs into  
archive. The current log is only for the current day (or month, week, or  
year). Other criteria, such as log size, can be used to trigger rotation.  
Rotation cuts off the current log, archives it, possibly deletes truly  
ancient logs, and starts a new current log. Look up the Linux logrotate  
command for further info. Here's one description:  
http://www.thegeekstuff.com/2010/07/logrotate-examples/

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-25 18:47 ` Achim Gratz
  2014-03-26  8:12   ` Pere Quintana Seguí
@ 2014-03-26 10:41   ` Eric S Fraga
  1 sibling, 0 replies; 10+ messages in thread
From: Eric S Fraga @ 2014-03-26 10:41 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> writes:

[...]

> I've long resorted to using two drawers back-to-back:
>
> :LOGBOOK:
>  …stuff…
> :END:
> :CLOSED:
>  …old stuff…
> :END:

Thanks for this.  Very simple yet elegant solution.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.2, Org release_8.2.5h-687-g9d39aa

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-26  8:31     ` Peter Neilson
@ 2014-03-28  9:37       ` Pere Quintana Seguí
  2014-03-29 14:06         ` Marcin Borkowski
  0 siblings, 1 reply; 10+ messages in thread
From: Pere Quintana Seguí @ 2014-03-28  9:37 UTC (permalink / raw)
  To: emacs-orgmode

El 26/03/14 09:31, Peter Neilson ha escrit:
> On Wed, 26 Mar 2014 04:10:02 -0400, Pere Quintana Seguí
> <pere@quintanasegui.com> wrote:
> 
>> El 25/03/14 19:27, Marcin Borkowski ha escrit:
>>> Dnia 2014-03-25, o godz. 16:00:01
>>> Pere Quintana Seguí <pere@quintanasegui.com> napisał(a):
>>>
>>>> I log most of my work with org-mode. Some of my tasks are repetitive,
>>>> this is, I do them weekly or daily (i.e. empty mail inbox). After many
>>>> years, the logs are very long. As a consequence, marking these tasks
>>>> as done is *very* slow.
>>>>
>>>> Is there a workaround that does not involver deleting the logs?
>>>
>>> Archiving?
>>>
>>
>> No, archiving would'nt work, as I need the task every day.
>>
>> Thanks for the tip.
>>
>> Pere
> 
> Perhaps this will help:
> 
> Standard method for log maintenance outside of org is to rotate logs
> into archive. The current log is only for the current day (or month,
> week, or year). Other criteria, such as log size, can be used to trigger
> rotation. Rotation cuts off the current log, archives it, possibly
> deletes truly ancient logs, and starts a new current log. Look up the
> Linux logrotate command for further info. Here's one description:
> http://www.thegeekstuff.com/2010/07/logrotate-examples/
> 
> 


I didn't understand your message. I thought you meant archiving the
task, but in fact you meant archiving the logs. That's what I've done.

thanks :-)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-26  8:12   ` Pere Quintana Seguí
@ 2014-03-28  9:38     ` Pere Quintana Seguí
  0 siblings, 0 replies; 10+ messages in thread
From: Pere Quintana Seguí @ 2014-03-28  9:38 UTC (permalink / raw)
  To: emacs-orgmode

El 26/03/14 09:12, Pere Quintana Seguí ha escrit:
> El 25/03/14 19:47, Achim Gratz ha escrit:
>> I've long resorted to using two drawers back-to-back:
> 
> That seems to be the most straightforward solution. I'll do that.
> 
> Maybe org-mode could do this automatically. A variable would determine
> when log entries should be archived in the second drawer.
> 
> I would write a patch if I could program in elisp, but I can't. :'(
> 
> Thanks,
> 
> Pere

The solution has been configuring org-drawers to create a new drawer
called :LOGBOOKARCHIVE" I will put the old logs there, as Achim Gratza
suggested.

Thanks for your tips,

Pere

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tasks with lots of logbook entries are very slow
  2014-03-28  9:37       ` Pere Quintana Seguí
@ 2014-03-29 14:06         ` Marcin Borkowski
  0 siblings, 0 replies; 10+ messages in thread
From: Marcin Borkowski @ 2014-03-29 14:06 UTC (permalink / raw)
  To: emacs-orgmode

Dnia 2014-03-28, o godz. 10:37:08
Pere Quintana Seguí <pere@quintanasegui.com> napisał(a):

> I didn't understand your message. I thought you meant archiving the
> task, but in fact you meant archiving the logs. That's what I've done.

Take a look at the senders: *I* did mean archiving the task, and
*Peter* meant archiving the logs.

> thanks :-)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-03-29 14:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25 15:00 Tasks with lots of logbook entries are very slow Pere Quintana Seguí
2014-03-25 18:27 ` Marcin Borkowski
2014-03-26  8:10   ` Pere Quintana Seguí
2014-03-26  8:31     ` Peter Neilson
2014-03-28  9:37       ` Pere Quintana Seguí
2014-03-29 14:06         ` Marcin Borkowski
2014-03-25 18:47 ` Achim Gratz
2014-03-26  8:12   ` Pere Quintana Seguí
2014-03-28  9:38     ` Pere Quintana Seguí
2014-03-26 10:41   ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).