Right now delivery receipts for a client don't have a timeout. This means that if a client connects once, then never connects again, its delivery receipts will be stored in the DB forever.
Note, we already cleanup previous delivery receipts when a client disconnects and we save the new ones. So it's not too bad.