Search Postgresql Archives

Re: Limitations of PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What's the point of a binary search if the list is small enough to fit on a line or two? And if a query can be substituted for N1-NN, you have to read all the values anyway, and then the function is trivially expressed as a normal query with no decrease in speed.

-- Dean
On Wed, 2005-10-12 at 20:08, Michael Fuhr wrote:
Here's an excerpt from the MySQL documentation:
INTERVAL(N,N1,N2,N3,...)
    Returns 0 if N < N1, 1 if N < N2 and so on or -1 if N is
    NULL.  All arguments are treated as integers.  It is required
    that N1 < N2 < N3 < ... < Nn for this function to work
    correctly.  This is because a binary search is used (very fast).


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
      message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux