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

Home -> Community -> Usenet -> c.d.o.server -> Re: NOT NULL

Re: NOT NULL

From: <bret_at_sybase.com>
Date: 1997/03/12
Message-ID: <858183793.26825@dejanews.com>#1/1

In article <01bc2e85$68e1fc60$1098f5ce_at_default>,   "Minh Giang" <mpg_at_fast.net> wrote:
>
> Hi,
> How much performance degradation to a table with all fields defined with
> NOT NULL compare to a table with one or two fields defined with NOT NULL?
>

In Sybase SQL Server, I don't think there would be a big difference. However, if you put the columns that will most frequently contain null at the end of the table description, your average row length will be shorter, which could result in more rows being stored per page, which would reduce the number of io operations. The gain would depend a lot on row length and the size of the table, etc., and is next to impossible to quantify for anything but a fully defined example.


| Bret Halford                    Imagine my disappointment       __|
| Sybase Technical Support        in learning the true nature  __|
| 6400 S. Fiddlers Green Circle   of rec.humor.oracle...    __|
| Englewood, CO 80111-4954 USA                             |
============================================================

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Wed Mar 12 1997 - 00:00:00 CST

Original text of this message

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