diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-08-16 09:14:46 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-08-20 12:26:46 +0200 |
commit | 401bcee258713b911cd67aa6dc832e4eff25deb4 (patch) | |
tree | 8d374bd33d443200e43dafa7e19d403727b478b8 /lib/log/panic-logger.go | |
parent | b896120f00d0b811a4b7e41709d8331a29c82cb0 (diff) | |
download | aerc-401bcee258713b911cd67aa6dc832e4eff25deb4.tar.gz |
jmap: refactor thread fetching
Refactor JMAP thread fetching to occur in a single request. We use a
result reference method call on Email/get to fetch the message info for
each message in a thread.
Previously, we checked the cache and only fetched information for
messages we didn't already have. This results in two requests and is
typically slower for most contexts. Also, in most cases if we are
fetching an email we don't already have it's because we also need to
fetch the entire thread. The only case this wouldn't happen is if we get
a new email in a thread. We can optimize this by fetching message info
for created messages in the push method at a later time.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/log/panic-logger.go')
0 files changed, 0 insertions, 0 deletions