MindTouch as it ships consists of two conceptual components: (1) the .NET API and (2) the PHP front-end. Over time, we've moved most of the business logic away from the PHP layer, which has had the benefit of reducing database connections. The end goal is to completely remove all database connections from PHP, which will allow deployments to set-up servers which only handle processing PHP front-end requests. (However, keeping the two levels separate may not necessarily yield performance gains, as the network/Apache overhead price may be high). This is mainly considered a "cleanup" item, which will help the development team by funneling all business logic through one entry point (API) and be consistent with the conceptual architecture of MindTouch.
Since the Hayes release, we've removed almost all of the database connections from the front-end, but a couple ones remain.
As a note, although the application will remove database dependencies, MindTouch's upgrade scripts are written in PHP, and will still require database updates.
This document exists to outline the existing database connections, and the work involved in removing them.
This spec is for PHP devs.
Just being documented.
There are three locations where database look-ups are still used heavily.
There are other locations where DB calls are still made, and I've made an initial pass at the clean-up in the attached patch file.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by