Subject | Re: [ib-support] Re: Why is Firebird so slow? |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2003-02-13T10:35:41Z |
At 19:41 12.02.2003 +0000, you wrote:
change this to
SELECT <fields>
FROM Media M
WHERE EXISTS(SELECT 1 FROM MediaItem MI WHERE MI.MKey = M.MKey and
MI.IState = 5)
and your query will be very quick.
Set
>SELECT *Dan,
>FROM Media
>WHERE MKey IN (SELECT MKey FROM MediaItem WHERE IState = 5 GROUP BY
>Key
change this to
SELECT <fields>
FROM Media M
WHERE EXISTS(SELECT 1 FROM MediaItem MI WHERE MI.MKey = M.MKey and
MI.IState = 5)
and your query will be very quick.
Set