brack3t / Djrill

[INACTIVE/UNMAINTAINED] Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill transactional email service from MailChimp.
BSD 3-Clause "New" or "Revised" License
319 stars 64 forks source link

Use single requests session for each Django email backend connection #94

Closed medmunds closed 9 years ago

medmunds commented 9 years ago

Right now, Djrill fires up a new request for each outgoing message, creating a new http connection. This is inefficient when sending many messages.

We should create a single requests.Session for each backend instance (each get_connection), and then use that session for all outgoing messages on the Django email backend connection.

(See http://stackoverflow.com/q/30982717/647002)

Wrhector commented 9 years ago

I've implemented this feature and PR created: #98

medmunds commented 9 years ago

Implemented in v2.0 by #98