Skip to content

Commit

Permalink
Bump version to 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
selwin committed Oct 22, 2023
1 parent d8f9933 commit d01680b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Changelog
=========

Version 3.8.0 (2023-10-22)
--------------------------
*

Version 3.7.1 (2023-08-08)
--------------------------
* Optimized a queryset in `get_queued()` that doesn't use indexes in Postgres. Thanks @marsha97!
* Optimized a queryset in `get_queued()` that doesn't use indexes in Postgres. Thanks @marsha97!
* Removed `date_hierarchy` option which causes admin to load slowly on DBs with a large number of emails. Thanks @selwin!
* Optimized `cleanup_expired_mails()` so that deletes emails in smaller batches. Thanks @marsha97!

Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,15 +412,28 @@ put in Django's `settings.py` to fine tune `post-office`'s behavior.

### Batch Size

If you may want to limit the number of emails sent in a batch (sometimes
If you may want to limit the number of emails sent in a batch (
useful in a low memory environment), use the `BATCH_SIZE` argument to
limit the number of queued emails fetched in one batch.
limit the number of queued emails fetched in one batch. `BATCH_SIZE` defaults to 100.

```python
# Put this in settings.py
POST_OFFICE = {
...
'BATCH_SIZE': 50,
'BATCH_SIZE': 100,
}
```

Version 3.8 introduces a companion setting called `BATCH_DELIVERY_TIMEOUT`. This setting
specifies the maximum time allowed for each batch to be delivered. Defaults to 180.

If you send a large number of emails in a single batch on a slow connection, consider increasing this number.

```python
# Put this in settings.py
POST_OFFICE = {
...
'BATCH_DELIVERY_TIMEOUT': 180,
}
```

Expand Down
2 changes: 1 addition & 1 deletion post_office/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3, 7, 1
3, 8, 0

0 comments on commit d01680b

Please sign in to comment.