Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the fastest way to get one message? #508

Open
ziggurad opened this issue Aug 13, 2024 · 0 comments
Open

What is the fastest way to get one message? #508

ziggurad opened this issue Aug 13, 2024 · 0 comments

Comments

@ziggurad
Copy link

My code:

return $folder->query()->all()->limit(1)->get()->last();

I am currently processing emails from a mailbox with about 9 thousand messages. Connection via oAuth, The above code executes in about 1.6 seconds. Is it possible to download one message faster? It does not matter to me whether it will be the first, last or random message from the mailbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant