openemr/openemr — pull request #6 by teddziuba (2012-05-08 08:06:26+00:00)
Title: Some work toward speeing up OpenEMR

- Added the `query_profile.php` module, that will log both queries
and the stack traces that produced them. Useful for tracking down
handlers that do a lot of SQL work.
- Changed the translation module to pre-cache the language for the
current user, as opposed to querying the DB every time it needed
a translation. `encounters.php`, for example, did well over 200
queries in translation alone. Precaching the language speeds that
up significantly.