Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4358 Remove unnecessary project lookups from app config setup

forge-jun-15
closed
General
1
2012-06-13
2012-06-12
Dave Brondsema
No

When building the top nav of a project, each app config entry queries mongo to get the project. That isn't necessary since the project is already known. This can be seen with the timing middleware. Set production.ini stats.sample_rate to 1, and increase the logging:

[logger_timermiddleware]
level = DEBUG
handlers =
qualname = timermiddleware

And then:

tail -F /var/log/allura/allura.log | grep ODMSession.*Project

Related

Tickets: #4389

Discussion

  • Dave Brondsema
    Dave Brondsema
    2012-06-12

    allura:db/4358

    • use instructions above to see a reduction in the number of Project queries executed
    • some are still present due to other unrelated queries
     


Anonymous


Cancel   Add attachments