Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Slow
Sun, Oct 31 2021 9:16 AMPermanent Link

Kees Lagendijk

Hi!

Why is this query so slow?

select sum(bedrag) as saldo from adm_journaal
where periode<202101
and rekeningnummer=12002

Tx,
Kees



Attachments: adm_journaal.rar
Mon, Nov 1 2021 3:48 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Kees


1. Please do not post 42Mb to a normal newsgroup - post the attachment to the binaries

2. running it here I get

>>>>> 1 rows affected in 0.016 seconds

That's not slow in my view so there must be other things affecting it.

Questions:
1. Have you tried running it in DBSys and checking the execution plan?
2. Is this being run natively or over a LAN, or a WAN

I'm sure there are others but none occur right now.

Roy Lambert
Image