![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I am working on a C++ app using a MySQL database in version 5.0. For the moment, the requests for the databse are coded in the C++ part and sent to the database via ADO connection. As I noticed that stored procedures are available in MySQL 5.0, I'd like to know if using stored procedures in spite of requests sent from C++ code could enhance the performances of our MySQL server ? Thank you. |
#3
| |||
| |||
|
|
On 10/26/2010 8:40 AM, Yo wrote: Hello, I am working on a C++ app using a MySQL database in version 5.0. For the moment, the requests for the databse are coded in the C++ part and sent to the database via ADO connection. As I noticed that stored procedures are available in MySQL 5.0, I'd like to know if using stored procedures in spite of requests sent from C++ code could enhance the performances of our MySQL server ? Thank you. Not significantly, if at all. If you're having a performance problem, you should find the cause of the problem(s) and fix it(them). |
#4
| |||
| |||
|
|
Hello, I am working on a C++ app using a MySQL database in version 5.0. For the moment, the requests for the databse are coded in the C++ part and sent to the database via ADO connection. As I noticed that stored procedures are available in MySQL 5.0, I'd like to know if using stored procedures in spite of requests sent from C++ code could enhance the performances of our MySQL server ? |
#5
| |||
| |||
|
|
Mostly not. It's still running the same SQL in the Stored Procedures as it is doing plain SQL hits. If you're doing a lot of recursion within your c++ application and establishing a lot of connections to support that, then moving to SPs to handle the recursion for you may help a lot, but that's not something that people do a lot of, in general. |
#6
| |||
| |||
|
|
Jerry Stuckle avait soumis l'idée : On 10/26/2010 8:40 AM, Yo wrote: Hello, I am working on a C++ app using a MySQL database in version 5.0. For the moment, the requests for the databse are coded in the C++ part and sent to the database via ADO connection. As I noticed that stored procedures are available in MySQL 5.0, I'd like to know if using stored procedures in spite of requests sent from C++ code could enhance the performances of our MySQL server ? Thank you. Not significantly, if at all. If you're having a performance problem, you should find the cause of the problem(s) and fix it(them). I am not having a performance problem, but I want to avoid such problems as my database will have to face lots of connections. So if using stored procedures could help to enhace performances, I'd prefer to use them now that coding is still on progress rather than having to re-code everything when program is terminated ... ;-) |
![]() |
| Thread Tools | |
| Display Modes | |
| |