Another small performance patch.

Currently, privatemsg_view() executes a UPDATE query for every displayed message. However, it is only necessary to do that for messages that aren't yet read.

CommentFileSizeAuthor
privatemsg.change_status.patch858 bytesberdir

Comments

berdir’s picture

Title: Only update status is necessary. » Only update status if necessary

Fix title

naheemsays’s picture

Status: Needs review » Reviewed & tested by the community

Tested and this works as expected.

litwol’s picture

Status: Reviewed & tested by the community » Fixed

committed :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.