The method ['mark_array_as_read'](https://github.com/ledermann/unread/blob/f6466d8cb9ddbaaea0e4d902ea0e67c0d1084367/lib/unread/readable.rb#L19) has a N+1 query when creating read_marks for multiple readables. Wrapping the 'save!' method of all objects in a single transaction could speed up the process.
The method 'mark_array_as_read' has a N+1 query when creating read_marks for multiple readables.
Wrapping the 'save!' method of all objects in a single transaction could speed up the process.