guillermo88
Programmer
Query takes long only the first time
-I have a transacctions table
-One of the index tag of this table is by account id
-I also have a data entry form where it check previous transacctions
of a customer (by account_id)
- transacctions table is about 90,000 records
-This is a multiuser application
-My sql statements is getting 2 columns only:
SELECT column1,colum2
FROM transacctions
WHERE account_id = variable
Why is it that takes long only the first time?
Is there a way to avoid this behavior?
Do views behave in the same way?
Can anyone give me some suggestions how I should do this?
Thanks
-I have a transacctions table
-One of the index tag of this table is by account id
-I also have a data entry form where it check previous transacctions
of a customer (by account_id)
- transacctions table is about 90,000 records
-This is a multiuser application
-My sql statements is getting 2 columns only:
SELECT column1,colum2
FROM transacctions
WHERE account_id = variable
Why is it that takes long only the first time?
Is there a way to avoid this behavior?
Do views behave in the same way?
Can anyone give me some suggestions how I should do this?
Thanks