Unix Technical Forum

GENERATED ALWAYS AS IDENTITY clause

This is a discussion on GENERATED ALWAYS AS IDENTITY clause within the DB2 forums, part of the Database Server Software category; --> Ian wrote: > select * from > (select > ..., > rownumber() over (order by login_timestamp) as rn > ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 02-27-2008, 04:59 AM
Bernd Hohmann
 
Posts: n/a
Default Re: GENERATED ALWAYS AS IDENTITY clause

Ian wrote:

> select * from
> (select
> ...,
> rownumber() over (order by login_timestamp) as rn
> from ...
> ) as a
> where rn between 10 and 30


Well, sounds good. But I have no idea what is the cost of rownumber()
and the subselect if the table grows.

Or better: does it cost more time to create the identity value on every
login (not very often, about 1-2 times per minute) or does it cost more
time to create a subselect on a table with 50.000 entries to fetch 10
rows at the end.

Bernd
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com