From: Eric Wong <e@80x24.org>
To: Maxim Mikityanskiy <maxtram95@gmail.com>
Cc: meta@public-inbox.org, Kyle Meyer <kyle@kyleam.com>
Subject: Re: [PATCH] lei q: do not collapse threads with `-tt'
Date: Sun, 26 Feb 2023 17:09:31 +0000 [thread overview]
Message-ID: <20230226170931.M947721@dcvr> (raw)
In-Reply-To: <Y/tN2+pdG5z5WcYf@mail.gmail.com>
Maxim Mikityanskiy <maxtram95@gmail.com> wrote:
> On Tue, Feb 14, 2023 at 02:42:32AM +0000, Eric Wong wrote:
> > Maxim Mikityanskiy <maxtram95@gmail.com> wrote:
> > > lei q --no-save -a -o /tmp/lei-test -I 'https://lore.kernel.org/all' \
> > > -tt 'a:syzbot AND rt:2023-01-01..2023-01-07'
<snip>
> > Yes, now it seems it's the collapsing optimization.
<snip>
> Sorry for taking too long, I finally found a minute to test it, and
> unfortunately I didn't see a difference. I queried for:
>
> a:syzbot AND rt:2023-02-01..2023-02-07
>
> and I still saw I lot of threads without a single flag.
>
> I double-checked that the patch was actually applied, killed lei-daemon,
> and removed the mailbox directory, but it didn't help.
Ah, oops. My original fix only works for locally-cloned inboxes;
but not remote (http/https) inboxes...
I think some inconsistency on the client side is also introduced
by using -I/--include vs --only; since -I/--include will use
previously-indexed messages in ~/.local/share/lei/store
Getting -tt to work on remote inboxes will take more effort.
I'm not sure which option is better:
1) Support t=2 natively in the WWW interface. This requires
both the server and client to be updated. It may require
extra dedupe step on the server, making it more expensive.
Thinking out loud, I think the dedupe step can be avoided
by sorting on THREADID...
2) use t=1 in the client as-is, but index the streamed mbox
locally, first. This requires a temporary Xapian DB to
ensure there's no overlap if using --only.
This only requires a client update, but likely adds more
complexity. It also delays updates to the Maildir,
meaning all messages need to be downloaded before the MUA
sees it...
I'm leaning towards 1...
next prev parent reply other threads:[~2023-02-26 17:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 16:06 lei q -tt doesn't work properly? Maxim Mikityanskiy
2023-02-14 2:42 ` [PATCH] lei q: do not collapse threads with `-tt' Eric Wong
2023-02-26 12:17 ` Maxim Mikityanskiy
2023-02-26 17:09 ` Eric Wong [this message]
2023-02-26 17:15 ` [PATCH] doc: note "lei q -tt" is broken with HTTP(S) remotes Eric Wong
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
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230226170931.M947721@dcvr \
--to=e@80x24.org \
--cc=kyle@kyleam.com \
--cc=maxtram95@gmail.com \
--cc=meta@public-inbox.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 read-only IMAP folder(s) and NNTP newsgroup(s).