Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Is this a performance issue?

RE: Is this a performance issue?

From: Glenn Travis <Glenn.Travis_at_wcom.com>
Date: Tue, 25 Jul 2000 15:12:05 -0400
Message-Id: <10569.112922@fatcity.com>


This is a multi-part message in MIME format.

--Boundary_(ID_BTNMXmSeNvK82Y0qz2dECw)
Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit

RE: Is this a performance issue?I guess I'm crossing dbms's again. This is a feature that is available in Ingres, and it allows you to create an index and specify index columns, but it also allows you to specify additional columns to carry as data columns (not part of the index, but stored with the index structure). I made the term 'dangling' up for lack of a better word, but you get my drift.

The point is that if you are constantly selecting SSN, FirstName, LastName from an employee table which has 30 columns and an index on SSN, then you could carry ('dangle') FirstName and LastName with the index and avoid the joinback to the table data. If the extra columns are few enough and small enough, you could get some real benefits in queries.

While Oracle or Informix may not have the same feature to carry extra columns as data in the index, you could still include them as part of the index, and it would server the same purpose. You just need to be careful with primary/foreign key issues, data model issues, constraints and so on. :disclaimer end.

just my .02.
and LIST, please correct me as necessary...   -----Original Message-----
  From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Siva_Chintalapati
  Sent: Tuesday, July 25, 2000 3:34 PM
  To: Multiple recipients of list ORACLE-L   Subject: RE: Is this a performance issue?

  What are dangling columns.

  Regards
  Siva



    From: Glenn Travis[SMTP:Glenn.Travis_at_wcom.com]     Reply To: ORACLE-L_at_fatcity.com     Sent: Tuesday, July 25, 2000 10:27 PM
    To:     Multiple recipients of list ORACLE-L
    Subject:        RE: Is this a performance issue?

    Unless all columns can be satisfied with an index (but you already knew     that, right?).

    If you have are selecting 5 columns, and say, three of them make up an     index, you may want to consider storing the other two in the index as     dangling columns. Depending on your table size, joins to other tables,     performance needs, this could be a real win...

> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of
> Kamesh.J.Mantri_at_citicorp.com
> Sent: Tuesday, July 25, 2000 5:24 AM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Is this a performance issue?
>
>
> Actually this is not a performance issue bcos when Oracle fetches
> rows for a
> select it does in with implicit cursor
> which goes row by row not column by column. Even if we mention
> a single col
> it fetches the whole row.
>
> Gurus correct me I am wrong..
>
>
> Kamesh.
>
> -----Original Message-----
> Sent: Monday,July 24, 2000 9:07 PM
> To: ORACLE-L
> Cc: schanna
>
>
> Gurus,
>
> I'm wondering if it's a performance issue if i select all the
> columns from
> a table even if you don't require.
>
> Let say I have a table which has about 50 columns in it and i need to
get

> values for only 5-10 columns. So, instead of selecting only these
columns

> I select *.
>
> Any idea if that screws up my performance?
>
>
>
> Santhosh Babu
>
> --
> Author: Channa, Santhosh, SITS
> INET: schanna_at_att.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
> --
> Author:
> INET: Kamesh.J.Mantri_at_citicorp.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

    --
    Author: Glenn Travis
      INET: Glenn.Travis_at_wcom.com

    Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
    San Diego, California        -- Public Internet access / Mailing Lists
    --------------------------------------------------------------------
    To REMOVE yourself from this mailing list, send an E-Mail message     to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in     the message BODY, include a line containing: UNSUB ORACLE-L     (or the name of mailing list you want to be removed from). You may     also send the HELP command for other information (like subscribing).

--Boundary_(ID_BTNMXmSeNvK82Y0qz2dECw)
Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: Is this a performance issue?</TITLE>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D870010219-25072000>I=20
guess I'm crossing dbms's again.&nbsp; This is a feature that is = available in=20
Ingres, and it allows you to create an index and specify index columns, = but it=20
also allows you to specify additional columns to carry as data columns = (not part=20
of the index, but stored with the index structure).&nbsp; I made the = term=20
'dangling' up for lack of a better word, but you get my=20 drift.&nbsp;</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20 class=3D870010219-25072000></SPAN></FONT>&nbsp;</DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN = class=3D870010219-25072000>The=20
point is that if you are constantly selecting SSN, FirstName, LastName = from an=20
employee table which has 30 columns and an index on SSN, then you could = carry=20
('dangle') FirstName and LastName with the index and avoid the joinback = to the=20
table data.&nbsp; If the extra columns are few enough and small enough, = you=20
could get some real benefits in queries.</SPAN></FONT></DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20 class=3D870010219-25072000></SPAN></FONT>&nbsp;</DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN = class=3D870010219-25072000>While=20
Oracle or Informix may not have the same feature to carry extra columns = as data=20
in the index, you could still include them as part of the index, and it = would=20
server the same purpose.&nbsp; You just need to be careful with = primary/foreign=20
key issues, data model issues, constraints and so on.&nbsp; :disclaimer=20 end.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20 class=3D870010219-25072000></SPAN></FONT>&nbsp;</DIV> <DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN = class=3D870010219-25072000>just=20
my .02.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN = class=3D870010219-25072000>and=20
LIST, please correct me as necessary...</SPAN></FONT></DIV> <BLOCKQUOTE=20
style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: = 5px">
  <DIV class=3DOutlookMessageHeader><FONT face=3D"Times New Roman"=20   size=3D2>-----Original Message-----<BR><B>From:</B> root_at_fatcity.com=20   [mailto:root_at_fatcity.com]<B>On Behalf Of</B> = Siva_Chintalapati<BR><B>Sent:</B>=20
  Tuesday, July 25, 2000 3:34 PM<BR><B>To:</B> Multiple recipients of = list=20
  ORACLE-L<BR><B>Subject:</B> RE: Is this a performance=20   issue?<BR><BR></DIV></FONT>
  <P><FONT color=3D#0000ff face=3DArial size=3D2>What are dangling = columns.</FONT>=20
</P>
  <P><FONT color=3D#0000ff face=3DArial size=3D2>Regards</FONT> = <BR><FONT=20
  color=3D#0000ff face=3DArial size=3D2>Siva</FONT> </P>   <UL>
    <P><FONT face=3D"MS Sans Serif" size=3D1>----------</FONT> = <BR><B><FONT=20

    face=3D"MS Sans Serif" size=3D1>From:</FONT></B> &nbsp; <FONT=20     face=3D"MS Sans Serif" size=3D1>Glenn = Travis[SMTP:Glenn.Travis_at_wcom.com]</FONT>=20

    <BR><B><FONT face=3D"MS Sans Serif" size=3D1>Reply To:</FONT></B>=20     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3D"MS Sans Serif"=20     size=3D1>ORACLE-L_at_fatcity.com</FONT> <BR><B><FONT face=3D"MS Sans = Serif"=20

    size=3D1>Sent:</FONT></B> &nbsp; <FONT face=3D"MS Sans Serif" = size=3D1>Tuesday,=20

    July 25, 2000 10:27 PM</FONT> <BR><B><FONT face=3D"MS Sans Serif"=20     size=3D1>To:</FONT></B> &nbsp;&nbsp;&nbsp; <FONT face=3D"MS Sans = Serif"=20

    size=3D1>Multiple recipients of list ORACLE-L</FONT> <BR><B><FONT=20     face=3D"MS Sans Serif" size=3D1>Subject:</FONT></B>=20     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3D"MS Sans Serif" = size=3D1>RE:=20

    Is this a performance issue?</FONT> </P>     <P><FONT face=3DArial size=3D2>Unless all columns can be satisfied = with an index=20

    (but you already knew</FONT> <BR><FONT face=3DArial size=3D2>that,=20     right?).</FONT> </P>
    <P><FONT face=3DArial size=3D2>If you have are selecting 5 columns, = and say,=20

    three of them make up an</FONT> <BR><FONT face=3DArial = size=3D2>index, you may=20

    want to consider storing the other two in the index as</FONT> = <BR><FONT=20

    face=3DArial size=3D2>dangling columns.&nbsp; Depending on your = table size,=20

    joins to other tables,</FONT> <BR><FONT face=3DArial = size=3D2>performance needs,=20

    this could be a real win...</FONT> </P>     <P><FONT face=3DArial size=3D2>&gt; -----Original = Message-----</FONT> <BR><FONT=20

    face=3DArial size=3D2>&gt; From: root_at_fatcity.com [</FONT><U><FONT = color=3D#0000ff=20

    face=3DArial size=3D2><A=20
    =
href=3D"mailto:root_at_fatcity.com">mailto:root_at_fatcity.com</A></FONT></U><F= ONT=20
    face=3DArial size=3D2>]On Behalf Of</FONT> <BR><FONT face=3DArial = size=3D2>&gt;=20

    Kamesh.J.Mantri_at_citicorp.com</FONT> <BR><FONT face=3DArial = size=3D2>&gt; Sent:=20

    Tuesday, July 25, 2000 5:24 AM</FONT> <BR><FONT face=3DArial = size=3D2>&gt; To:=20

    Multiple recipients of list ORACLE-L</FONT> <BR><FONT face=3DArial = size=3D2>&gt;=20

    Subject: RE: Is this a performance issue?</FONT> <BR><FONT = face=3DArial=20

    size=3D2>&gt;</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt; Actually this is not a performance issue = bcos when=20

    Oracle fetches</FONT> <BR><FONT face=3DArial size=3D2>&gt; rows for = a</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt; select it does in with implicit =

    cursor</FONT> <BR><FONT face=3DArial size=3D2>&gt; which goes row = by&nbsp; row=20

    not column by column.&nbsp; Even if we mention</FONT> <BR><FONT = face=3DArial=20

    size=3D2>&gt; a single col</FONT> <BR><FONT face=3DArial = size=3D2>&gt; it fetches=20

    the whole row.</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt; Gurus correct me I am wrong..</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt;</FONT> <BR><FONT face=3DArial = size=3D2>&gt;</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt; Kamesh.</FONT> <BR><FONT = face=3DArial=20

    size=3D2>&gt;</FONT> <BR><FONT face=3DArial size=3D2>&gt; = -----Original=20

    Message-----</FONT> <BR><FONT face=3DArial size=3D2>&gt; Sent: = Monday,July 24,=20

    2000 9:07 PM</FONT> <BR><FONT face=3DArial size=3D2>&gt; To: = ORACLE-L</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt; Cc: schanna</FONT> <BR><FONT = face=3DArial=20

    size=3D2>&gt;</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt; Gurus,</FONT> <BR><FONT face=3DArial = size=3D2>&gt;</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt;&nbsp; I'm wondering if it's a = performance=20

    issue if i select all the</FONT> <BR><FONT face=3DArial = size=3D2>&gt; columns=20

    from</FONT> <BR><FONT face=3DArial size=3D2>&gt;&nbsp; a table even = if you don't=20

    require.</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT face=3DArial=20

    size=3D2>&gt;&nbsp; Let say I have a table which has about 50 = columns in it=20

    and i need to get</FONT> <BR><FONT face=3DArial size=3D2>&gt;&nbsp; = values for=20

    only 5-10 columns. So, instead of selecting only these = columns</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt;&nbsp; I select *.</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt;</FONT> <BR><FONT face=3DArial = size=3D2>&gt;&nbsp; Any=20

    idea if that screws up my performance?</FONT> <BR><FONT face=3DArial =

    size=3D2>&gt;</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt;</FONT> <BR><FONT face=3DArial = size=3D2>&gt;&nbsp;=20

    Santhosh Babu</FONT> <BR><FONT face=3DArial size=3D2>&gt;</FONT> = <BR><FONT=20

    face=3DArial size=3D2>&gt; --</FONT> <BR><FONT face=3DArial = size=3D2>&gt; Author:=20

    Channa, Santhosh, SITS</FONT> <BR><FONT face=3DArial = size=3D2>&gt;&nbsp;&nbsp;=20

    INET: schanna_at_att.com</FONT> <BR><FONT face=3DArial = size=3D2>&gt;</FONT>=20

    <BR><FONT face=3DArial size=3D2>&gt; Fat City Network = Services&nbsp;&nbsp;&nbsp;=20

    =

size=3D2>----------------------------------------------------------------=
----</FONT>=20

    <BR><FONT face=3DArial size=3D2>To REMOVE yourself from this mailing = list, send=20

    an E-Mail message</FONT> <BR><FONT face=3DArial size=3D2>to:=20     ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and = in</FONT>=20

    <BR><FONT face=3DArial size=3D2>the message BODY, include a line = Received on Tue Jul 25 2000 - 14:12:05 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US