Feature #23374

Add support for prepared queries

Added by Xavier Perseguers almost 5 years ago. Updated over 1 year ago.

Status:Resolved Start date:2010-08-14
Priority:Must have Due date:
Assigned To:Xavier Perseguers % Done:

0%

Category:Database API Spent time: -
Target version:-
PHP Version:5.2 Sprint Focus:
Complexity:

Description

Prepared queries would help take better advantage of advanced usage of underlying DBMS and would allow DBAL to be much more efficient by allowing parsed and rewritten queries to be cached.

(issue imported from #M15457)

15457_dbal.diff Magnifier (12.5 kB) Administrator Admin, 2010-08-14 19:13

15457_core.diff Magnifier (20.3 kB) Administrator Admin, 2010-08-14 22:04

15457_core_v2.diff Magnifier (20.6 kB) Administrator Admin, 2010-08-14 22:06

15457_dbal_v2.diff Magnifier (13.6 kB) Administrator Admin, 2010-08-14 22:07

15457_dbal_v3.diff Magnifier (15 kB) Administrator Admin, 2010-08-14 22:52


Related issues

related to Core - Feature #21614: Add support for MemCache Closed 2009-11-19
related to Core - Bug #23424: Enhance t3lib_db_PreparedStatement Resolved 2010-08-22
related to Core - Feature #27372: Execute native prepared queries in t3lib_DB Resolved 2011-06-11

History

#1 Updated by Xavier Perseguers almost 5 years ago

v2 implements the TODO of first version:

Find a way to already compile the query into a string while preserving the information
where each parameter appears. This will prevent compiling and compiling again the
query in method stmt_execute() and will allow caching of the query into Memcached and
as such completely bypass the parsing of the already seen before SELECT query.

This will allow #21614 to be fixed.

#2 Updated by Xavier Perseguers almost 5 years ago

dbal_v3 fixes issues when really using DBAL (local unit tested with Oracle).

#3 Updated by Xavier Perseguers almost 5 years ago

Committed to:

- Core trunk (rev. 8612)
- DBAL trunk (rev. 36983)

Also available in: Atom PDF