More optimizations to User::saveOptions()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Jun 2014 18:54:50 +0000 (11:54 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Jun 2014 18:58:43 +0000 (18:58 +0000)
commitb66bb911b57fbbd39df97fc1878aaa46dea7590f
tree3c79c297b6f31fe2d29b838c108ee4401dc2625b
parent50537a24c81a24c6050feb0db6d9aaf238609264
More optimizations to User::saveOptions()

* Avoid doing the DELETE for unchanged rows. This method is often
  called when one new preference (e.g. watchlist token) is set.
  These cases will now simple result in an INSERT, even if the
  user already has some preferences set.

bug: 36116
Change-Id: Ib7c558e7c06927875086b86ea719ac1323a7b4a8
includes/User.php