Save 
Join IIUG
 for   
 

Informix News
29 July 09 - Wall Street Journal - IBM to Acquire SPSS, Adding to Acquisitions... Read
11 February 09 - InformationWeek - IBM Drifts Slowly Toward Mainstream Cloud Computing... Read
11 February 09 - CNNMoney.com - IBM to Deliver Software via Cloud Computing With Amazon Web Services... Read
07 January 09 - Huliq News - IBM Power Servers Helps Bank of Chengdu Build Up Core Banking System.. Read
04 December 08 - Steeleye - Multicarta achieves 99.997% uptime for its Informix-based Credit Card Authorization Centre... Read
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read


End of Support Dates

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: Question about sysindexes.clust

Posted By: Art Kagel
Date: Wednesday, 19 November 2008, at 10:55 a.m.

In Response To: Re: Question about sysindexes.clust (Eric Rowell)

Eric,

Thinking on this some more in my sleep, I realized that even though there
are some 69MM rows in the qty_det table I can't imagine why this query even
takes 4+ hours to complete at its best. Several items to consider going
forward:

- I remembered that there are 5 index accesses on the same index on the

qty_head and that all five are doing sub-key scans between the OR'd value

pairs of set_no and version. Breaking that OR into a UNION of two queries

will instead allow separate equality searches on those two keys along with

the two higher level keys which lead the index. The engine is doing this

internally to satisfy the IN clause on dept_code - hence the 5 independent

accesses to the index - but it cannot do so to satisfy the OR clause on two

columns. You'll have to resolve that yourself (you might even test

deconstructing this query into 10 UNIONED SELECT statements to resolve the

OR and the IN clauses into ten equality searches. Only testing will tell

which strategy is best. I always say there are at least three ways to

formulate ANY SELECT query. In your case there are at least eleven.

- No data is returned from qty_head so if that index also contained the

serial_key column access to this table would not require reading any data

pages and could be performed key-only rather than key-first. This simple

change would remove at least half and likely >90% of the IOs on this table.

Also, the added column may allow you to mark an otherwise duplicate index as

unique which generates a more efficient structure on disk. So, append

serial_key to this important join index.

- I see SERIAL FRAGMENT ALL for all three tables. Are the tables

fragmented? If not, perhaps they should be, certainly the two larger

tables. If they are, perhaps you should revisit the fragmentation scheme to

permit fragment elimination. Either way this query may benefit, as the

Clown suggested, from running under positive PDQPRIORITY to at least enable

fragment elimination and perhaps parallel searching of multiple fragments.

- What are the underlying disk structures that these IOs are so slow? In

4.5 hours you could read the entire qty_det table at a rate of only 99 IOs

per second! Any decent disk worth its salt should be able to sustain close

to 10 times that rate and that's not even considering the multiplier of any

multi-spindle RAID implementation under the hood. Something is NOT RIGHT

here.

- What are the underlying disk structures (single spindle, RAID5,

RAID1, RAID10, ???)

- Is there perhaps a problem with the writeback cache on the disk

array or SAN? A disabled cache can slow down a fast array by an order of

magnitude.

- Are you using RAW or COOKED chunks?

- Is the engine using KAIO for the chunk IO?

- Platform and OS and IDS versions?

Art

On Wed, Nov 19, 2008 at 9:28 AM, Eric Rowell <erowell@gmail.com> wrote:

> Art,
>
> Thank you for your analysis we came up with the same thing but backed
> into this via watching the page reads on the table during the applications
> run. We happened to find this as a production issue when trying to
> normalize this table in development so that the large highly repeated
> varchar coud be moved to another table.
>
> What was odd to me was that the Buffer Turn Over, Buffer Wait, and Read
> Ahead Utilization all doesn't appear to change for the worse, just the
> runtime and page reads (note we don't report on total page reads until now
> since day to day useage is different).
>
> I was embarrased at first about not monitoring this value but the more
> people tell me that they don't watch this value the more I understand it is
> not do to my own lack of trying. It appears that most people don't look at
> the sysindexes.clust value since like any go DB/SA data is moved around and
> reloaded for other reasons as a course of normal business. We too haven't
> run into this because we normally migration to new hardware every 3 years
> and about every 1 1/2 year find a reason to reload this table. At the end
> of last year we should have looked at reloading some tables since the
> migration to new hardware wasn't required. This would be way we haven't
> seen this before.
>
> It's now time for us to come up with some matrix to monitor this over
> time to see when this value indicates the need to reload or cluster a table
> just incase for the future. But it looks like a table by table a different
> value wouldn't indicate this need.
>
> Thanks again for all that replied,
>
> Eric B. Rowell
>

> <Previous entries SNIPPED>
>

--
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.