Closed abhillman closed 4 years ago
118k mails is quite a lot--are you pulling them all into memory? Can you check your system's resource utilization?
@abhillman please provide more details here or will close the issue. On the surface it looks like you're trying to pull to many emails in one query.
@abhillman this is likely because you're downloading all emails in memory before going through them. i'd recommend an approach similar to what i did here: https://github.com/gmailgem/gmail/issues/219
As of version 0.7.0 (Aug 19, 2018) this gem is officially deprecated and will no longer be maintained. Please instead use Google's official Gmail API Ruby Client, which uses the Gmail API rather than IMAP and has significantly better performance and reliability.
Thank you kindly for maintaining this gem.
I am doing something like the following (fairly standard):
After about 300 emails, the Ruby hung for about an hour before I killed the process. My question is:
Some notes:
error_emails.length
returns ~118k — so there are a lot of emails we are cycling throughAny ideas? It is possible this is due to JRuby. Thank you again for maintaining this gem!