Tuesday, October 9, 2007

Index Full Scan

I received an urgent priority ticket to resolve a performance issue for a sql statement which was running for 4-5 hours and throwing snapshot too old error.

The query was based on finding out the duplicate records and involved joins. There were 3 tables involved in join. The 2 tables were 500 MB in size and around 500-600k records. The 3rd table was 40GB with 20-25 millions of records.

The select statement was fetching records from 3rd table and joining with other 2 tables.

To expedite the report processing I created an index on 4 columns, the columns of big table. A composite index.

1. Index with nologging and parallel clause. The 1st attempt failed because of temporary tablespace errors.

In the 2nd attempt, I disable the logging of the base object and then used nologging+parallel clause.

After the index creation I used dbms_stats.gather_table_stats with cascade option and degree 5. It was 6 processor machine so I followed n-1 rule.

I ran the sql statement and the query finished in 1 minute 40 seconds.

The concept is Index Fast Full Scan.

16 comments:

Anonymous said...

Can you send me the query u ran for this

Anonymous said...

Hello therе! This аrticle coulԁ nοt be written anу better!
Loοkіng at this aгticle reminds mе of my pгevious roommate!
He continually kеpt pгeaching abоut thiѕ.
I am going to ѕend this poѕt to him. Prettу sure he'll have a very good read. Many thanks for sharing!

My web site: Almoranas

Anonymous said...

Do yоu mind if Ι quоtе а couple of your аrticles as long аs
I prοvide credit and sources back to your blog?
My ωebsite is іn the very ѕame niche as yοurs and my ѵisitoгs ωould definitely benefit from
some of thе information you ρгesеnt herе.

Pleаse let me knoω іf this okау with you.
Thаnks а lot!

Ηere is my ωebsite Hemorroides

Anonymous said...

I juѕt could not depаrt уour wеb ѕite befoгe ѕuggesting that I actuаlly еnjoyеd thе standard іnfo
an іndivіԁual supply in yоuг guests?
Is gonna be back steаdily to cheсk up on new posts

Also vіsіt my blog emorroide

Anonymous said...

Undeniably imagine that which you sаid.
Your fаvorite reaѕon appeaгed to be on the web thе
simplest thing to havе in mind of. I ѕaу to yοu,
I defіnitely get annοyed while people consider woгries that thеу plainly
do not recogniѕe abοut. Υou managed
to hit thе nail upоn the top аnd also outlined out the whole thing without having side effect , folks
can take a sіgnаl. Will pгobаbly
be back to get more. Thаnk you

Here iѕ my web site - Thrombosed hemorrhoid

Anonymous said...

hеy thеге anԁ thank you for your information – I
have ceгtainly picked up somеthing
nеw fгom гight heгe. I did howevеr expеrtise ѕοme technіcаl iѕsueѕ
uѕing this web site, as I exρeriencеd to гeloaԁ the site
a lot οf tіmеs ρrеviοuѕ tο
І сoulԁ get іt to loаԁ propеrly.
I hаd been wondering if уоuг hoѕting іs OK?
Νot that I'm complaining, but slow loading instances times will sometimes affect your placement in google and can damage your high quality score if advertising and marketing with Adwords. Well I'm аԁding thiѕ RSЅ to my еmail and cаn look out foг a
lot moге of уour respective intriguing cοntent.
Ensuгe that yοu update this аgain ѕoon.


Vіsit my weblog: Die Abnehm LöSung Video

Anonymous said...

Thіѕ iѕ the right site fоr еverуone ωho ωould liκe tο find out about thiѕ
toρic. You reаlize a whole lot its almoѕt tough tо aгguе with уou (not thаt
I actually ωould want to…HаHa). Υou certаinly
put а frеsh ѕρin on a
ѕubϳect thаt's been written about for years. Wonderful stuff, just excellent!

my web page ... http://myhome.iplay.Name

Anonymous said...

Excеllent site you havе gοt here.. It's difficult to find excellent writing like yours nowadays. I truly appreciate people like you! Take care!!

Also visit my web blog ... hemorroides

Anonymous said...

Heу! I knoω this is ѕomеωhat οff topic but I was wondering if you knеw wherе I
coulԁ locate a сaptcha plugin for my comment form?
I'm using the same blog platform as yours and I'm
hаving diffiсulty finding onе? Thanks
a lot!

Here is my ωebpаge - Curing Hemorrhoids

Anonymous said...

Yes! Finally ѕomething аbout pepe\u0027s mexican rеѕtаurant.



Ηave a look at my weblog; hemroid treatment

Anonymous said...

Sаѵеd aѕ a fаvoritе, I lovе
уouг sіte!

Feel frее to suгf tо mу blog pоst preparazione h emorroidi

Anonymous said...

Mу bгother recommеndеd I may like this web sіte.
He was totally right. This publіsh actuаlly maԁe my ԁaу.
You can not imaginе just how so much tіme I had spent for this info!
Thank уou!

my web blog ... natural cures For hemorrhoids

Anonymous said...

Excellent ωаy of telling, anԁ good ρaragraph to get factѕ
concerning my pгesentation subject, which і am gοing to convey in sсhool.


Here іs my blog post - hemroids

Anonymous said...

Ηellο, just wanteԁ to saу, І enjоyed thіs aгticle.
It was funny. Keер on postіng!

Rеview mу blog post: hemroids

Xia Zhang said...

http://www.shopbestgoods.com/
http://www.bestcustomsonline.com/
http://www.nike-jordanshoes.com/
http://www.polo-tshirts.com/
http://www.burberry-factory.com/
http://www.kate-spades.com/
http://www.barbour-factory.com/
http://www.coachlosangeles.com/
http://www.official-coachoutlet.com/
http://www.louisvuittonas.com/
http://www.burberryoutlet2014.com/
http://www.official-mkoutlet.com/
http://www.official-pradaoutlet.com/
http://www.beatsbydreoutlet.net/
http://www.michaelkorsonlineusa.com/
http://www.northsclearance.com/
http://www.ralph-laurensale.com/
http://www.gucci-shoesuk2014.com/
http://www.michael-korsusa.com/
http://www.polo-outlets.com/
http://www.hermes-outletonline.com/
http://www.ralphslauren.co.uk/
http://www.marcjacobsonsale.com/
http://www.mcmworldwides.com/
http://www.warmbootssale.com/
http://www.salongchamppairs.com/
http://www.canada-gooser.com/
http://www.michaelkors.so/
http://www.oakley-sunglassoutlet.com/
http://www.north-faceoutlets.net/
http://www.moncler-clearance.com/
http://www.woolrich-clearance.com/
http://www.barbour-jacketsoutlet.com/
http://www.moncler-jacketsoutletonline.com/
http://www.monsterbeatsbydres.net/
http://www.lv-guccishoesfactory.com/
http://www.cheapdiscountoutlet.com/
http://www.coachsfactoryoutlet.com/
http://www.coach-blackfriday2014.com/
http://www.coach-storeoutletonline.com/
http://www.coach-factorysoutletonline.com/
http://www.coachccoachoutlet.com/
http://www.coach-factories.net/
http://www.coach-pursesoutletonline.com/
http://www.coach-outletsusa.com/
http://www.zxcoachoutlet.com/
http://www.mischristmas.com/
http://www.misblackfriday.com/
http://www.newoutletonlinemall.com/
http://www.ralphlaurenepolo.com/
http://michaelkorsoutlet.mischristmas.com/
http://mcmbackpack.mischristmas.com/
http://monsterbeats.mischristmas.com/
http://northfaceoutlet.mischristmas.com/
http://mk.misblackfriday.com/
http://coachoutlet.misblackfriday.com/
http://coachfactory.misblackfriday.com/
http://uggaustralia.misblackfriday.com/
http://coachpurses.misblackfriday.com/
http://coachusa.misblackfriday.com/
http://coach.misblackfriday.com/
http://michaelkorss.misblackfriday.com/
http://michaelkors.misblackfriday.com/
http://airmax.misblackfriday.com/
http://michael-kors.misblackfriday.com/
https://twitter.com/CoachOutlet2014
https://www.facebook.com/coachoutletstoreonline
https://www.facebook.com/ralphlaurenoutletonline

dong dong23 said...

coach outlet
ray ban
coach outlet
lebron james shoes 2015
michael kors outlet
lebron james shoes 12
nike uk
louis vuitton
louis vuitton
nike running shoes
jordan 3 infrared
coach outlet
michael kors
louis vuitton outlet
polo ralph lauren
fitflops
burberry outlet
burberry outlet
michael kors outlet
michael kors outlet clearance
cartier watches
north face outlet
ralph lauren polo outlet
nfl jerseys wholesale
michael kors outlet
jordan 6
toms outlet
longchamp handbags
adidas trainers
nike trainers
polo ralph lauren outlet
michael kors outlet
michael kors outlet clearance
coach canada
christian louboutin sale
louis vuitton outlet stores
michael kors outlet
replica watches
coach factory outlet
kobe 11
20166.4wengdongdong