Issue Details (XML | Word | Printable)

Key: SONAR-499
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Simon Brandhof
Reporter: Freddy Mallet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sonar

Improve Sonar database use on project/module/packages measures (project_measures table)

Created: 03/Dec/08 09:22 AM   Updated: 18/May/09 10:01 AM   Resolved: 24/Apr/09 06:20 AM
Component/s: Tuning
Affects Version/s: 1.4
Fix Version/s: 1.9

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide

Whereas SONAR-487 was dedicated to improve Sonar database use on class measures, this new improvement focus on other kind of resources (projects, modules, packages).

Here is a tip to improve Sonar database use by reducing the number of rows in project_measures table for this king of resources :

  • For each couple "resource/rule" there are currently 6 measures whereas two are really used (Violations on mandatory rules and Violations on optional rules)
    o Stop calculating the others four measures (Coding rules compliance, Optional coding rules compliance, Coding rules compliance, including optional rules, Violations, including optional rules)
    o For the two remaining measures, they should be filled only when the value is not 0

Those improvements should reduce the number of measures by resources (projects, module, package) from 700 to less than 100.

With this new improvement, I think we can divide the number of rows in project measures by 2.



Freddy Mallet added a comment - 11/Dec/08 04:37 AM

I've done my benchmark.
With this new improvement, the project_measures table will contain 12'933 rows associated with project STRUTS-1.3.9.

There were

  • 290'000 rows with Sonar 1.4
  • 427'000 rows with Sonar 1.5 Milestone 1
  • 53'000 rows with Sonar 1.5 Release Candidate 1

and so 12'933 once this ticket will be fixed