Re: [Zope] Stored Procedures Versus ZSQL Methods
[email protected] Tue, 17 Feb 2009 18:58:47 -0500
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Message-ID | <OF30B9FE2A.A5F6BE3B-ON85257560.008323EC-85257560.0083C8AA@YKK-USA.COM> |
No, ZSQL really predates bind variables. That is, they we available on a few systems, but were rare. If the Oracle specialist has a reason for going to external methods, like his server is seriously loaded, I would pay attention to him. If he is just following some set of "best practices", well, that is a political problem for Remy. Using external methods will be more work for the zope writer. I don't know enough to comment seriously on security issues, but I think that using procedures, like using bind variables, will make SQL Injection much harder. Cynthia Kiser <[email protected]> 02/17/2009 06:44 PM To [email protected] cc Remy Pinsonnault <[email protected]>, [email protected] Subject Re: [Zope-DB] [Zope] Stored Procedures Versus ZSQL Methods Quoting [email protected] <[email protected]>: > Yes, with a stored procedure the DB does not have to reparse and > prepare a new plan for every query. This can be a major win. Esp. > on Oracle. Does ZSQL allow the use of bind variables? If so and the database has a correctly sized query cache, there shouldn't be much reparsing for repeated queries.