Mercurial > kallithea
view MANIFEST.in @ 4752:ad374c171656
comments: introduce lazy join of ChangesetStatus on ChangesetComment
99% of all uses of ChangesetComment will also need the optional corresponding
ChangesetStatus (if any) on the status_change relationship. Fetching it on
demand gives a lot of roundtrips and might be slow ... but adding explicit bulk
queries everywhere do not seem feasible. Adding lazy=joined in the data model
seems like the best solution.
Loading a pull request with 10 comments on a slow repo goes from 3.5 s to
2.7 s.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Jan 2015 00:54:36 +0100 |
parents | 48f21c3cfcdf |
children | ff08d3cf9aef |
line wrap: on
line source
include kallithea/config/deployment.ini_tmpl include kallithea/lib/dbmigrate/migrate.cfg include README.rst recursive-include kallithea/i18n * #docs recursive-include docs * #init.d recursive-include init.d * #images recursive-include kallithea/public/css * recursive-include kallithea/public/images * #js recursive-include kallithea/public/js * #codemirror recursive-include kallithea/public/codemirror * #fontello recursive-include kallithea/public/fontello * #templates recursive-include kallithea/templates *