.. _PROFILING: Profiling and performance ========================= If you feel that one of your pages takes more time than it should to be generated, chances are that you're making too many RQL queries. Obviously, there are other reasons but experience tends to show this is the first thing to track down. Luckily, CubicWeb provides a configuration option to log RQL queries. In your ``all-in-one.conf`` file, set the **query-log-file** option:: # web application query log file query-log-file=/home/user/myapp-rql.log Then restart your application, reload your page and stop your application. The file ``myapp-rql.log`` now contains the list of RQL queries that were executed during your test. It's a simple text file containing lines such as:: Any A WHERE X eid %(x)s, X lastname A {'x': 448} -- (0.002 sec, 0.010 CPU sec) Any A WHERE X eid %(x)s, X firstname A {'x': 447} -- (0.002 sec, 0.000 CPU sec) The structure of each line is:: --