Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: slow nnimap moves due do many SELECTs
Date: Wed, 22 Sep 2010 18:53:21 +0200	[thread overview]
Message-ID: <m3k4mden3y.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <87lj6tg8sc.fsf@lifelogs.com>

Ted Zlatanov <tzz@lifelogs.com> writes:

> Moving N articles results in:
>
> 09:00:37 190 SELECT "INBOX"
> 09:00:37 191 UID FETCH 274385 BODY.PEEK[]
> 09:00:37 192 UID COPY 274385 "INBOX.ding"
> 09:00:37 193 UID STORE 274385 +FLAGS.SILENT (\Deleted)
> 09:00:37 194 UID EXPUNGE 274385
> 09:00:37 195 SELECT "INBOX.ding"
> 09:00:37 196 UID SEARCH HEADER Message-Id "<87tylhhpie.fsf@lifelogs.com>"

[...]

> etc. for each article.  Can than be optimized to switch mailboxes only
> once?

Hm.  Well, the thing is that we need to select the group we moved to to
find out what the article number we got was.  Because Gnus needs that to
copy over the marks and other stuff.  So copying an article from group A
to group B involves at least to SELECTs.

However, it's possible to imagine an interface where you say "here's a
list of articles to move, and where they are going to be moved, and then
you return the list of article numbers".  Then nnimap could issue one
SELECT for the group you're moving from, and one SELECT per mailbox it
moved things to.  So if you moved 400 messages to INBOX.ding, there'd be
only two SELECTs.

However, this would require quite a bit of fiddling with the interface
functions...

But there may be other ways to fix this that I'm not seeing?  Is there a
way to get the UID of a message without SELECTing the mailbox it's in
first?  Or a way to get the new UID from the UID COPY command?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2010-09-22 16:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22 14:19 Ted Zlatanov
2010-09-22 16:53 ` Lars Magne Ingebrigtsen [this message]
2010-09-22 17:09   ` Michael Welsh Duggan
2010-09-22 17:17     ` Lars Magne Ingebrigtsen
2010-09-22 17:52       ` Michael Welsh Duggan
2010-09-22 17:57         ` Lars Magne Ingebrigtsen
2010-09-28 13:30           ` Ted Zlatanov
2010-09-29 21:46             ` Lars Magne Ingebrigtsen
2010-09-30 15:50               ` Ted Zlatanov
2010-09-30 16:35                 ` Lars Magne Ingebrigtsen
2010-09-30 16:43                   ` Lars Magne Ingebrigtsen
2010-09-30 18:11                     ` Ted Zlatanov
2010-09-30 18:16                       ` Lars Magne Ingebrigtsen
2010-09-30 16:54                   ` Ted Zlatanov
2010-09-30 17:02                     ` Lars Magne Ingebrigtsen
2010-09-30 15:22             ` Austin F. Frank
2010-09-22 17:25     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k4mden3y.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).