[FLOW3-general] Question about change in Query object since Alpha12
Sebastian Kurfürst
sebastian at typo3.org
Wed Oct 13 08:35:03 CEST 2010
Hey,
you are totally right, I should have done my answer more explicitely.
> PersistenceManager::getObjectCountByQuery() calls
> $this->backend->getObjectCountByQuery($query);
>
> Backend::getObjectCountByQuery() results in:
> return count($this->getObjectDataByQuery($query));
Right now, the standard persistence backend stores its data in
not-yet-optimized form, and the whole persistence backend is not yet
optimized either. That's why while the infrastructure is in place to do
f.e. COUNT queries in SQL, at the lower level inside the persistence
backend, we still fetch the objects and count them.
However, in the backend which is shipped with Extbase, a real COUNT(..)
query is done if needed; and I guess that in the next months, we will
have some more backends implemented (I've heard rumours of a CouchDB
backend, and maybe even using Doctrine2 as persistence backend). These
backends will have a much better performance then, and hopefully we can
use many already existing technologies for that :-)
Greets,
Sebastian
More information about the FLOW3-general
mailing list