Article View: be.comp.programming
Article #3907Re: query probleem
From: Passero
Date: Wed, 01 Oct 2003 14:30
Date: Wed, 01 Oct 2003 14:30
20 lines
2148 bytes
2148 bytes
"Sjoerd Schreuder" <sa_schreuder@wanadoo.nl> schreef in bericht news:3F7ADCF6.5459EB8E@wanadoo.nl... > > Weet je zeker dat je computer "vast loopt", of is hij gewoon erg lang > bezig met het uitrekenen van de resultaten? Je doet een join over drie > tabellen. Als je geen indices hebt, kan dat errug lang duren. > > Dus: welke indices heb je staan? Indices op de PKs is bijna > verplicht. Indices op de FKs kan in een aantal gevallen ook > helpen, afhankelijk van hoe de aanpak van je query is. > > Verder zou je een "SELECT COUNT(1) FROM ..." kunnen doen om te kijken > hoeveel resultaten je hebt. En dan geen DISTINCT of ORDER BY, want dat > kost alleen maar extra tijd. Bij grotere aantallen ligt het voor de hand > dat je query een boel tijd nodig heeft. > Hoe komt het dan dat access er niet lang over doet, hij doet het direct?
Technical Details
Message-ID:
<pyBeb.51530$pW5.2212920@phobos.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!wn14feed!wn13feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<oJAeb.51435$io6.2252917@phobos.telenet-ops.be> <3F7ADCF6.5459EB8E@wanadoo.nl>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,7a865f12d18a6328 X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,7a865f12d18a6328 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-10-01 07:31:35 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!wn14feed!wn13feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: "Passero" <yanongena@pandora.be> Newsgroups: be.comp.programming,nl.comp.programmeren References: <oJAeb.51435$io6.2252917@phobos.telenet-ops.be> <3F7ADCF6.5459EB8E@wanadoo.nl> Subject: Re: query probleem Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Message-ID: <pyBeb.51530$pW5.2212920@phobos.telenet-ops.be> Date: Wed, 01 Oct 2003 14:30:45 GMT NNTP-Posting-Host: 213.224.10.113 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1065018645 213.224.10.113 (Wed, 01 Oct 2003 16:30:45 MEST) NNTP-Posting-Date: Wed, 01 Oct 2003 16:30:45 MEST Organization: Telenet Internet