Save 
Join IIUG
 for   
 

Informix News
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter


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

Classics Forum

RE: SERIAL to INTEGER key joins vs. CHAR to CHAR.

Posted By: Ian Michael Gumby
Date: Tuesday, 9 March 2010, at 12:31 p.m.

In Response To: Re: SERIAL to INTEGER key joins vs. CHAR to CHAR. (Art Kagel)

Uhm...

Art, you're trying to fix a brain dead solution.
Hint: The patient is dead from the get go.

Frank,

First, what's the number of customers in the database?
10,100,1000, 10K,100K?
What's the number of loans per customer?

(For all we know this could be a paychex system where we're tracking paycheck loans...)

You still want to use the cust_id to loan_id join and indexing.

You want speed, you still have a couple of other tricks using 4GL/C and prepared cursors on looking up customers.
But that's besides the point.

Unloading and then reloading your master table of customers is completely brain daid. Yes, I said 'daid' instead of dead.

As Art pointed out there's a lot missing from your story and what's missing is important when you want to think about solutions.

Or you could run with a typical OTC response... "Have you tried UPDATE STATISTICS?" "Oh, you have? Well try it again... " ;-)

-G

> To: classics@iiug.org
> From: art.kagel@gmail.com
> Subject: Re: SERIAL to INTEGER key joins vs. CHAR to CHAR. [3526]
> Date: Mon, 8 Mar 2010 19:25:31 -0500
>
> Wait,is this Standard Engine (SE)? You didn't mention you are using
> Standard Engine! I suppose if we all looked back at your previous post we
> might have guessed that (since you didn't mention it them except by
> inference), but I for one don't do that. I don't have time. You REALLY
> should post your engine and platform details when you first post a question.
>
> If so, then ignore what I wrote about UPDATE STATISTICS HIGH and MEDIUM,
> that only applies to Informix Dynamic Server. However, all of the comments
> everyone said about CLUSTER indexes is still true. Standard Engine (nor IDS
> for that matter) does NOT maintain your clustered indexed table in sorted
> order after the initial clustering. The ONLY reason that data is being
> returned in sorted order is that SE is using the index to find the records.
> It is using a key lookup to find the first matching row (if there is a
> filter) and then scanning across the index leaves which returns the keys and
> rowids in sorted order by the index or cluster key. Since the index was
> initially clustered, the majority of rows are right next to each other on
> disk so access is very fast. Newly added rows will force additional disk
> reads, but each read will pull multiple rows into memory so it will not
> affect performance until a significant percentage of the rows are no longer
> clustered. The exact percent depends on the number of rows that fit on page
> on disk. (Well, SE doesn't really organize data in pages on disk, but the
> IO buffer it uses to read a block of rows into memory works the same way.)
>
> By the way, unless you include an ORDER BY clause, the order of returned
> rows, EVEN WITH A CLUSTERED INDEX, is not guaranteed! Posting this
> application to IDS someday where the optimizer is smarter and is likely to
> ignore the clustered index if there is no ORDER BY clause (and sometimes
> even if there is one) is likely to break your application because the
> optimizer may be able to retrieve the data faster using a different index or
> sort it faster than it can be fetched using the index, even in leaf scan
> mode.
>
> Art
>
> Art S. Kagel
> Advanced DataTools (www.advancedatatools.com)
> IIUG Board of Directors (art@iiug.org)
>
> See you at the 2010 IIUG Informix Conference
> April 25-28, 2010
> Overland Park (Kansas City), KS
> www.iiug.org/conf
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions and
> do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
> organization with which I am associated either explicitly, implicitly, or by
> inference. Neither do those opinions reflect those of other individuals
> affiliated with any entity with which I am affiliated nor those of the
> entities themselves.
>
> On Mon, Mar 8, 2010 at 3:08 PM, FRANK ROTOLO <frank.pr@msn.com> wrote:
>
> > I am using INFORMIX-SQL (perform, ace).
> > My cluster indexes seem to maintain the rows physically ordered in the .dat
> > files because after adding new customers or loans, I query those tables and
> > the newly added customers appear to be in sorted order.
> >
> >
> >
> >
> *******************************************************************************
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
>
> --0015173fe862d9bf170481533738
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>

_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/201469230/direct/01/

Messages In This Thread

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

Classics Forum is maintained by Administrator with WebBBS 5.12.