[ckan-dev] CKAN Profile tool

David Read david.read at hackneyworkshop.com
Thu May 17 16:32:02 UTC 2012


I've added an easy way to run profiling on CKAN web requests. It
should be useful for tracking down exactly which functions are slow.
https://github.com/okfn/ckan/commit/112e405d0116bdcf196062520e3474e231337996

So you can do:
  $ paster profile /dataset
whilch will profile a request to /dataset and put the results in a
file: ckan.dataset.profile. You can install a nice profile viewer like
Run Snake Run http://www.vrplumber.com/programming/runsnakerun/ and
view the timings for every function call.

(Remember to do 'python setup.py develop' before the new paster
command will be recognised)

So do have a try, and let's see if we can make CKAN faster in lots of
little ways!

Dave




More information about the ckan-dev mailing list