If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > what if optimizer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-12, 09:20
abcdxyz abcdxyz is offline
Registered User
 
Join Date: Feb 2012
Posts: 1
cost calculations

Somebody out here. please help me! I need this help for my b.tech final year project. I need to know how the cost calculations are done by mysql before tuning the indices, if it has the 'index tuning'. Otherwise, I need to know if there is anyway before materializing the index, cost of a particular query ,if an index set is materialized ,can be found out prior to the materialization. Please,please help me with this. I will be very grateful . Thanks in advance

Last edited by abcdxyz; 02-11-12 at 04:01.
Reply With Quote
  #2 (permalink)  
Old 02-08-12, 21:38
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I guess you are referring to "EXPLAIN". Have a look at that in the manual for your DB2 version and platform.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 02-08-12, 22:00
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Reply With Quote
  #4 (permalink)  
Old 02-09-12, 01:15
amitrai4 amitrai4 is offline
Registered User
 
Join Date: Aug 2011
Posts: 46
There is a "Virtual Index" facility in DB2 ZOS, where you can analyze an index before creating it. Here is the link, you can find detail.

DB2's Virtual Index Support

I vaguely remember , Quest Central provide the similar functionality for DB2 UDB .

I don't find same Virtual Index facility on DB2 UDB though. Does anybody know, aware of ?
Reply With Quote
  #5 (permalink)  
Old 02-09-12, 01:29
amitrai4 amitrai4 is offline
Registered User
 
Join Date: Aug 2011
Posts: 46
Quote:
Originally Posted by amitrai4 View Post
There is a "Virtual Index" facility in DB2 ZOS, where you can analyze an index before creating it. Here is the link, you can find detail.

DB2's Virtual Index Support

I vaguely remember , Quest Central provide the similar functionality for DB2 UDB .

I don't find same Virtual Index facility on DB2 UDB though. Does anybody know, aware of ?
db2advis, provide "what if " analysis in LUW world though not exactly in same manner as "Virtual Indexes".
Reply With Quote
  #6 (permalink)  
Old 02-11-12, 06:17
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
this thread has had a 'interesting history'
started off life multi posted in MySQL & DB2 forums.
I interpreted it as a general request so moved it to the concepts forum
the original poster has no advised me that they would prefer it in the MySQL forum

most if not all of the responses are from posters in the DB2 fourm
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Tags
benefit, cost, index, query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On