[TYPO3-core] RFC: Integrate Doctrine2 into TYPO3 CMS

Xavier Perseguers xavier at typo3.org
Sat May 31 10:33:21 CEST 2014


Hi,

Daniel Moritz wrote:
> In my opinion, Doctrine 2 DBAL on its own cannot increase the speed,
> because the queries to the database will be the same as before. The key
> benefit by using DBAL is the data abstraction, that means other database
> types than mysql can be used without the need to rewrite the existing
> code - not much more. But it cannot be used to optimize the speed,
> because there is no datamanager for already fetched data. This advantage
> takes place in the ORM - there is an entitymanager, which avoid new
> queries to the database, if the requested data was fetched already, can
> be identified by its primary key and therefore delivered directly from
> memory. Not only in this point we should differ between DBAL and ORM ...

To be honest I see the use of Doctrine2 quite feasible when it comes to
Extbase-based extensions (taking for granted that we don't need the raw
query mechanism). As Extbase is very widely used, if one wants to invest
some time into it "for real", experimentation should be done in that area.

Furthermore, DBAL support for Extbase (or more strictly said Extbase
comforming to DBAL rules) is next to none at the moment so this would
(if it works and is quick enough) leads to proper non-mysql support for
Extbase-based extensions, which would be great! Even if for some time (=
versions) both methods are coexisting, DBAL for "Core" and Doctrine2 for
Extbase-based extensions.

Kind regards

-- 
Xavier Perseguers
TYPO3 CMS Team Member

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org



More information about the TYPO3-team-core mailing list