Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
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 ]

IDS Forum

Re: Two table join

Posted By: Jack Parker
Date: Friday, 29 July 2005, at 7:29 a.m.

In Response To: RE: dbimport error (Tomasz.Lato@breinwest.com.pl)

If you think I or anyone else is wrong, don't be shy - continue the thread
publicly, I promise not to be upset. All of us learn that way. Certainly I
have been mistaken in the past and will continue to make errors in the
future. You might also try the comp.database.informix group - that has a
wider distribution.

I don't currently have an Informix engine running here (I'm still rebuilding
things) so I can't see what you are seeing.

Mark? Are you out there? Jump in any time.

cheers
j.

----- Original Message -----
From: "pathri chakravarthy" <ckvarthy@yahoo.com>
To: "Jack Parker" <vze2qjg5@verizon.net>
Sent: Friday, July 29, 2005 12:51 AM
Subject: Re: Two table join [39]


> Hi Jack,
> Thanks a lot for your information jack.
>
> There was a problem in sending to IDS group so i
> posted this in XPS. I am using IDS 9.3.
>
> The query you arrieved is almost the correct one.
>
> As you have stated that the PDQ memory is not used for
> sort and group operations, i feel this is not true.
> The performance PDF states that it uses the PDQ memory
> for this type of operations. Also i checked this. WHen
> there is a sort or group by operation and PDQ set it
> is taking that memory.
>
> I still have a doubt lingering in my mind,Why should
> the sorting be done on disk when i have sufficient RAM
> main memory.
>
>
>
> Bye.
>
>
>
>
> --- Jack Parker <vze2qjg5@verizon.net> wrote:
>
> >
> > You have limited control over where sorting and
> > grouping occur. You can
> > attempt to make it more efficient
> > 1 - increase the number of tempspaces up to 2 per
> > cpu (3 per cpu is the max
> > that the engine will use, but that's overkill)
> > You could get fancy and set up RAMdisks as temp
> > spaces if this is what
> > you are trying to achieve. I've never bothered to
> > try it.
> > 2 - export PSORT_NPROCS=n where n is the number of
> > parallel processes you
> > want to SORT (and group) with.
> >
> > 80M of DS Memory is not a lot to work with. DS
> > memory comes out of your
> > virtual memory and you control how much of it you
> > use with PDQPRIORITY -
> > although the engine may not choose to use that much
> > - and it certainly is
> > not going to use it for a sort or group - it prefers
> > to use the tempspace.
> > DSMemory is most useful in a hash join. You monitor
> > this memory with
> > onstat -g mgm (or 'rgm' depending on your engine) -
> > I am a little confused
> > here, you started this thread in the xps group and
> > now you've shifted it
> > over to the ids group - so I am unclear as to which
> > engine you have. If you
> > are monitoring memory with 'mgm' then it's ids.
> >
> > PDQPRIORITY also controls the degree of parallelism,
> > but then read this
> > article:
> >
>
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0205parker/
> >
> > It's a cookbook article on how to tune queries, it
> > goes into PDQ as well.
> >
> > Sounds like the query you want is:
> >
> > select
> > a.image_loc,a.access_domain,min(a.access_datetime)
> > access_datetime
> > from access a
> > where a.access_success='F'
> > and (a.image_loc is not null or not exists
> > (select 0 from image where
> > a.image_loc=image.image_loc))
> > and not exists (select 0 from access where
> > a.key=access.key and
> > a.access_success='F' and access_success='S')
> > group by 1,2
> >
> > That's not the prettiest of data structures against
> > which to run this sort
> > of query. If you've only got 100K rows, then it's
> > not a big deal, but if
> > you are going to scale this up, then I recommend not
> > trying to search a
> > history table of this nature for this sort of
> > information. Better to keep
> > track of current status of an image in a status
> > table, which can be indexed
> > and searched without joins.
> >
> > cheers
> > j.
> >
> > ---
> >
> > Sorting in memory:
> >
> > One of my Sql statement having an group by clause is
> > using temporary dbspace to sort. I need this sorting
> > to happen in memory itself. How can it be achieved.
> > I
> > tried setting the PDQ priority parameter but still
> > the
> > sorts are going to temp space.
> >
> > PDQ memory:
> >
> > I am bit confused from where the PDQ memory is
> > allocate. Pls clarify it.
> >
> > I have set shmvirtsize of 80M and DS_total_memory as
> > 80M and MAXPDQPRIORITY and PDQPRIORITY as 100. when
> > i
> > run a query and issue a onstat -g mgm i find the mgm
> > is showing 80M is occupied but in onstat -g ses that
> > amount is not taken. It shows only around 125K(in
> > memory column) in both onstat -g seg and onstat -g
> > ses. I think the mgm allocates the memory from
> > Virtual
> > memory. so when i give a query with this settings,
> > ideally there should not be any free memory in
> > virtual
> > memory.
> >
> > ----- Original Message -----
> > From: "pathri chakravarthy" <ckvarthy@yahoo.com>
> > To: "Jack Parker" <vze2qjg5@verizon.net>;
> > <ids@iiug.org>
> > Sent: Thursday, July 28, 2005 1:02 AM
> > Subject: Re: Two table join [39]
> >
> >
> > > Hi,
> > >
> > > Yes your right the statistics are not being
> > updated.
> > >
> > > My requirement is to fetch all the failed image
> > > locations. The image location may fail at one
> > point in
> > > time(status F) and later succeed with a status of
> > 'S'.
> > > I am doing a self join to get only the failed
> > > ones(which are not succeeded in future).
> > >
> > > Also i want to know whether the server allocates
> > > necessary memory as and when required or it
> > allocates
> > > some default memory for the joins and sorts.
> > >
> > > Is there a way i can control the allocation of
> > memory
> > > for joins and sorts. Also can these joins be
> > performed
> > > parallely.
> > >
> > >
> > >
> > > bye.
> > >
> > > --- Jack Parker <vze2qjg5@verizon.net> wrote:
> > >
> > > > I should have been clearer.
> > > >
> > > > 1 select nrows from systables where tabname =
> > > > 'access'; Just see what the
> > > > database thinks you have there for rows - bet
> > it's
> > > > small. This is where
> > > > 'update statistics' will help. Your estimated
> > cost
> > > > value from the explain
> > > > plan screams that stats are not updated. You
> > might
> > > > consider an update
> > > > statistics medium for the columns involved.
> > > >
> > > > 2. The 'not in' is more expensive than an
> > 'exists'
> > > > clause, consider
> > > > replacing it with:
> > > > 'and not exists (select 0 from image where
> > > > a.image_loc=image.image_loc)'
> > > >
> > > > 3. you don't indicate what is indexed. That
> > would
> > > > be useful information, as
> > > > well as rowsize and fragmentation of both tables
> > > > (access and image)
> > > >
> > > > 4. Why do you have the self join in there? You
> > > > aren't using anything from
> > > > the second copy of the table and aren't using
> > the
> > > > second table to filter
> > > > anything.
> > > >
> > > > select
> > > >
> > a.image_loc,a.access_domain,min(a.access_datetime)
> > > > access_datetime
> > > > from access a
> > > > where a.access_success='F'
> > > > and (a.image_loc is not null or not exists
> > > > (select 0 from image where
> > > > a.image_loc=image.image_loc))
> > > > group by 1,2
> > > >
> > > > Should do exactly the same thing.
> > > >
> > > > Fix these things first, then let's talk about
> > the
> > > > rest of it.
> > > >
> > > > j.
> > > > ----- Original Message -----
> > > > From: "PARAMESHWAR...." <pcdudyala@yahoo.com>
> > > > To: <xps@iiug.org>
> > > > Sent: Wednesday, July 27, 2005 9:14 AM
> > > > Subject: Two table join [35]
> > > >
> > > >
> > > > > Hi,
> >
> === message truncated ===
>
>
>
>
> ___________________________________________________________
> How much free photo storage do you get? Store your holiday
> snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

Messages In This Thread

  • dbimport error
    Tomasz.Lato@breinwest.com.pl -- Monday, 20 January 2003, at 2:56 a.m.
    • RE: dbimport error
      Kokane Rajesh, IBM -- Monday, 20 January 2003, at 3:53 a.m.
      • RE: dbimport error
        Tomasz.Lato@breinwest.com.pl -- Monday, 20 January 2003, at 4:22 a.m.
        • Re: Two table join
          Jack Parker -- Thursday, 28 July 2005, at 8:47 a.m.
        • Re: Two table join
          Jack Parker -- Friday, 29 July 2005, at 7:29 a.m.
    • RE: dbimport error
      Colin Bull -- Monday, 20 January 2003, at 4:48 a.m.

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

IDS Forum is maintained by Administrator with WebBBS 5.12.