PHP PDO: how does re-preparing a statement affect performance
I'm writing a semi-simple database wrapper class and want to have a fetching method which would operate automagically : it should prepare each different statement only the first time around and just bind and execute the query on successive calls. I guess the main question is: How does re-preparing the same MySql statement work, will PDO magically recognize the statement (so I don't have to) and cease the operation? If not , I'm planning to achieve do this by generating a unique key for each different query and keep the prepared statements in a private array in the database object - under its