Extbase persistence – models and the database

Extbase provides its own way to persist and retrieve data using models and repositories, which are built on top of TYPO3's database abstraction layer.

Repositories in Extbase usually define custom find*() methods and rely on \TYPO3\CMS\Extbase\Persistence\Generic\Query to perform queries on models.

While Extbase persistence is the standard way to work with data in Extbase, you can also use the DBAL QueryBuilder directly within an Extbase context when:

  • You need better performance on large datasets.
  • You are performing complex queries (aggregates like SUM, AVG, ...).