@mattab opened this Issue on April 21st 2015 Member

The goal of this issue is to consider if it's possible to simplify a key component of Piwik core architecture: database drivers.

Current Piwik uses two different implementation of Database objects, Tracker\Db (used in Tracking API) and Db (used everywhere else). It's always a bit surprising when one learns about this. The historical reason was that Tracking API needed to be small memory footprint and very fast, which is still the case today, but back in the day it was estimated that loading Zend_Db was too slow. But maybe today is not anymore so important and maybe we could merge and use only one Db driver for easier maintenance & more clean code platform in the future?

(to find out we may want to compare profiles of Tracker\Db vs Db and see if there's any difference at all already, or if not too difficult to do maybe we could directly make the switch in the codebase and compare performance of before/after)

@mattab commented on July 14th 2015 Member

Tentatively adding to 3.0.0 roadmap. Is this actually do-able in 3.0.0, what do you think?

@mnapoli commented on July 20th 2015 Contributor

:+1:

Powered by GitHub Issue Mirror