[Tickets #12660] getByModSeq - when start == end, don't query database

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Sep 6 12:37:48 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12660
------------------------------------------------------------------------------
  Ticket             | 12660
  Created By         | arjen+horde at de-korte.org
  Summary            | getByModSeq - when start == end, don't query database
  Queue              | Horde Framework Packages
  Version            | Git develop
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


arjen+horde at de-korte.org (2013-09-06 12:37) wrote:

In the general case where getByModSeq is called with a start == end,  
there is no need to do a query to the database, as the answer (an  
empty array) is already known (when these two are equal,  
history_modseq can never be both > AND <= to this value). Since this  
will be the case most of the time, it is much cheaper to check this  
before doing a database query.



arjen+horde at de-korte.org (2013-09-06 12:37) uploaded: History.diff

http://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=History.diff&ticket=12660&fn=%2FHistory.diff





More information about the bugs mailing list