in reply to Using prepared_cache with placholders
Why? The SQL never changes, so you're just using up memory for nothing.
This is sloooow compared to working with a HOH, which I am currently trying to switch from.
Not surprised. You're using Switch, creating redundant SQL, keeping the file in memory, and doing redundant round trip to database.
You need to start from scratch.
Is there a way I can leverage placeholders and prepared cache if that many values change on each statement?
Yes, absolutely. Besides preventing SQL injection, placeholders are there to speed things up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using prepared_cache with placholders
by herda05 (Acolyte) on Apr 03, 2010 at 22:31 UTC | |
by ikegami (Patriarch) on Apr 04, 2010 at 00:05 UTC |