Optimizedb flags

Optimizedb flags

Post by Frank Verhel » Wed, 05 Jul 1995 04:00:00



I read in one of the recent posts that to maintain optimum performance for
ABF, you should do an optimizedb with the -zc flag.  
Our DBA Guide (Version 6.4.05) doesn't even show this flag. Was this
changed between versions?  We run optimizedb with -zk flag on all our
databases.  Is there something else I should be doing? - I did a "Help
table" on one of the system catalog tables, and no statistics show.

Thanks in advance,

Elaine Verhelst

 
 
 

Optimizedb flags

Post by Gavin Trig » Thu, 06 Jul 1995 04:00:00


Elaine/Frank,

The DBA Guide usually doesn't show all options.  Rather it has IN DEPTH
discussions on SOME options of particular relevance to DBA's.  "-zc"
is in the Ingres/SQL Command Summary and probably in the SQL Reference
Manual.

Quote:

> I read in one of the recent posts that to maintain optimum performance for
> ABF, you should do an optimizedb with the -zc flag.  
> Our DBA Guide (Version 6.4.05) doesn't even show this flag. Was this
> changed between versions?  We run optimizedb with -zk flag on all our
> databases.  Is there something else I should be doing? - I did a "Help
> table" on one of the system catalog tables, and no statistics show.

> Thanks in advance,

> Elaine Verhelst

--

                Telephone: +61 3 9344 6003      Fax +61 3 9347 4803
Manager Administrative Systems Processing, Information Technology Services,
The University of Melbourne, Parkville, Australia.  3052.
                President, Victorian Ingres Users Association

 
 
 

Optimizedb flags

Post by Hamish Mars » Sat, 08 Jul 1995 04:00:00


: I read in one of the recent posts that to maintain optimum performance for
: ABF, you should do an optimizedb with the -zc flag.  
: Our DBA Guide (Version 6.4.05) doesn't even show this flag. Was this
: changed between versions?  We run optimizedb with -zk flag on all our
: databases.  Is there something else I should be doing? - I did a "Help
: table" on one of the system catalog tables, and no statistics show.
:  

What you should do, is optimisedb on all columns that appear in a where
clause of all your SQL statements. That way the optimiser can do its job
the way it was designed.

--
======================================================================
|  Hamish Marson                                                     |


|  University of Waikato           | PHONE    +64 7 8562889 xt 8181  |
|  New Zealand                     | FAX      +64 7 8384066          |
===========Disclaimer :- Remember. You heard it here first.===========
If nuclear bombs are so safe why don't the French test them under Paris

 
 
 

1. Optimizedb and flags

Hi.

I am having trouble understanding the '-zw' flag on the optimizedb utility with Ingres
6.4/04+.

According to the manual:
'Sets the "complete" flag which indicates whether a column contains all possible values.
The range of values in a column affects query optimization.
By default, columns are assumed to be "not complete"'

I have a command:

optimizedb -zk -zw -zr100 -zu100 db -rtable

This tells me that if a given column has more than 100 distinct values, then merge the
distinct values into an inexact histogram of 100 cells.

Using statdump, the complete flag is set to 1 is -zw is set.

I don't understand how -zw affects the query plan directly. I thought that the optimizer
would look at the uniqueness of the column and the % distibution of values in the
histogram based on the actual data.

Any help appreciated.

--

Graham Harrison

2. Error Log problem !. - Please advise

3. Use of "+Y" flag and "+U" flag with optimizedb

4. Several Aggregation Functions

5. Unusual warning message from optimizedb on Ingres II 2.5

6. unbalanced indexes -- common wisdom?

7. some optimizedb stuff

8. optimizedb -i warning

9. Problem with optimizedb when run thru crontab

10. Optimizedb errors E_LQ0040 & E_LC002B

11. Use of statistics and optimizedb

12. Predicting Optimizedb Execution Times