🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #836

Re: Performance: Best strategy for non-PK and non-alphabetical sort orderfor rows?

#836
From: Bill Todd
Date: Wed, 23 May 2007 15:30
8 lines
1239 bytes
Use a double precision column to determine the order, not an integer.
This avoids the need to renumber the rows. To move a row so that it is
positioned between two existing rows calculate the sequence number as:

RowAbove + (RowBelow - RowAbove) / 2

-- 
Bill Todd (TeamB)
Technical Details
Message-ID: <46545e14@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46540e25$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,7ed325c4992c39f3
X-Google-Attributes: gid114a0e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill Todd" <no@no.com>
Subject: Re: Performance: Best strategy for non-PK and non-alphabetical sort orderfor rows?
Newsgroups: borland.public.interbase.sql
References: <46540e25$1@newsgroups.borland.com>
Organization: The Database Group, Inc.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 216.207.211.19
Message-ID: <46545e14@newsgroups.borland.com>
Date: 23 May 2007 08:30:28 -0700
X-Trace: newsgroups.borland.com 1179934228 216.207.211.19 (23 May 2007 08:30:28 -0700)
Lines: 8
X-Authenticated-User: btodd
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail