whimet / ianalyse

Automatically exported from code.google.com/p/ianalyse
0 stars 0 forks source link

Need the cache. #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the view layer the builds object has been created for too many times, it
is a very costly operation, should be cached, else the whole system will be
unusable.

Original issue reported on code.google.com by Iamka...@gmail.com on 12 Dec 2009 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by Iamka...@gmail.com on 12 Dec 2009 at 11:19

GoogleCodeExporter commented 9 years ago

Original comment by Iamka...@gmail.com on 12 Dec 2009 at 11:19

GoogleCodeExporter commented 9 years ago
* Should introduce ProjectGroup, which contains a hash, project_id is the key, 
Builds
object of associated project as the value.

* Should move the sql query to Builds object.

* Should introduce a cache, which cached the ProjectGroup:
  * When user click the generate report for one specific project, this project need
to be updated.

  * When user click the generate all reports, the whole project group need to be updated.

  * Should also provide api to get the latest build for certain project.

Original comment by Iamka...@gmail.com on 13 Dec 2009 at 5:32

GoogleCodeExporter commented 9 years ago
Builds.create_builds should not take 3 parameters, 2 is good enough

Original comment by Iamka...@gmail.com on 13 Dec 2009 at 11:10

GoogleCodeExporter commented 9 years ago

Original comment by Iamka...@gmail.com on 13 Dec 2009 at 1:51