Prepare ?
Posted: Mon 18 Sep 2006 00:20
Hi
I am a bit puzziled about the prepare method. I have seen in the dokumentation That the prepare method can be called for TMemDataSet, TCustomDASQL and TCustomDADataSet
1. Am I right in the assumption that the prepare method does pretty much the same thing for all these three classes, and that is cause the MySQL SERVER to prepare a query for execution ? Or is there some preperatin done in Delphi too ?
2. You can also set AutoPrepare in Options for a TQuery. What is this exactly ?
3. I have an application that initiates a new Tconnection, TQuery and TCommand for every user that logs in. For every user a series of queries are executed, but the same query is not executed more than once. Do I need to call the prepare method at all ?
Please Help.
Kind regards
I am a bit puzziled about the prepare method. I have seen in the dokumentation That the prepare method can be called for TMemDataSet, TCustomDASQL and TCustomDADataSet
1. Am I right in the assumption that the prepare method does pretty much the same thing for all these three classes, and that is cause the MySQL SERVER to prepare a query for execution ? Or is there some preperatin done in Delphi too ?
2. You can also set AutoPrepare in Options for a TQuery. What is this exactly ?
3. I have an application that initiates a new Tconnection, TQuery and TCommand for every user that logs in. For every user a series of queries are executed, but the same query is not executed more than once. Do I need to call the prepare method at all ?
Please Help.
Kind regards