Only UPDATE readStatus if it changed #491

Merged
grant-olson merged 1 commits from check_readstatus_before_update into master 2013-09-08 00:27:34 +02:00
grant-olson commented 2013-09-07 19:37:16 +02:00 (Migrated from github.com)

getInboxMessageByID now lets you update the readStatus. This is 5-10x slower than a normal call because of the sql UPDATE. This really adds up when I use getAllInboxMessageIDs and then get each message individually for processing. We should only execute the update when the status actually changes.

`getInboxMessageByID` now lets you update the readStatus. This is 5-10x slower than a normal call because of the sql UPDATE. This really adds up when I use `getAllInboxMessageIDs` and then get each message individually for processing. We should only execute the update when the status actually changes.
This repo is archived. You cannot comment on pull requests.
No description provided.