I got a performance issue when I execute some SQL queries using UCanAccess 3.0.7.
On my 2 projects (a big project and a little project with just the minimum required to execute queries using UCA), most of my queries run correctly. Which means :
- they run well
- they take 17-130 milliseconds to execute.
Here are some example of queries which work :
For a reason that I don't understand, I have also few queries which run, but not correctly. Which means :
- they run well
- but they take 9-26 seconds to execute (much more than my first times in milliseconds).
Here are some example of queries which return my performance issue :
(sorry, there are auto-constructed access queries and names are in french, so they're quite stodgy)
I have to notice some things :
- The table Livrable have 18 000 entries (but I don't think it's a problem because I have no problem when I run SELECT * FROM Livrable)
- The last query doesn't react alike in my big and my little project. In my little project the run is too long (as I explained before), but in my big project it's return this error :
I did some research about this error, but I didn't find any solution which works for my problem.
I will try to create a query in Access to make fewer JOIN in my queries. But if you have some idea to solve my issue, I am interested.
Thanks ! ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you verified that the Access database has indexes on each of the columns used in joins? That is, for the last query you gave, the columns that should be indexed are:
Thank you for the response.
I have added indexes on few columns that you have notice me and it seems to works better, I have better results (160 milliseconds) now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I got a performance issue when I execute some SQL queries using UCanAccess 3.0.7.
On my 2 projects (a big project and a little project with just the minimum required to execute queries using UCA), most of my queries run correctly. Which means :
- they run well
- they take 17-130 milliseconds to execute.
Here are some example of queries which work :
For a reason that I don't understand, I have also few queries which run, but not correctly. Which means :
- they run well
- but they take 9-26 seconds to execute (much more than my first times in milliseconds).
Here are some example of queries which return my performance issue :
(sorry, there are auto-constructed access queries and names are in french, so they're quite stodgy)
I have to notice some things :
- The table
Livrable
have 18 000 entries (but I don't think it's a problem because I have no problem when I runSELECT * FROM Livrable
)- The last query doesn't react alike in my big and my little project. In my little project the run is too long (as I explained before), but in my big project it's return this error :
I did some research about this error, but I didn't find any solution which works for my problem.
I will try to create a query in Access to make fewer JOIN in my queries. But if you have some idea to solve my issue, I am interested.
Thanks ! ;)
Have you verified that the Access database has indexes on each of the columns used in joins? That is, for the last query you gave, the columns that should be indexed are:
Thank you for the response.
I have added indexes on few columns that you have notice me and it seems to works better, I have better results (160 milliseconds) now.