Skip to main content

Log details about ZCatalog query performance

Project description

collective.catalogtrace

Log details about ZCatalog query performance

Features

Logs details about each ZCatalog query:

  • Query parameters
  • Where the query was called
  • Detailed execution:
    • Index name
    • Elapsed time
    • Count of persistent objects loaded
    • Count of new objects tracked by the Python GC

This information can be used to troubleshoot poor query performance.

There is some overhead to recording these measures.

Tracing is enabled for all queries if the TRACE_CATALOG_QUERIES environment variable is set.

Tracing can be enabled for specific requests by setting the catalogtrace cookie.

Installation

Install collective.catalogtrace with pip:

pip install collective.catalogtrace

And to create the Plone site:

make create-site

Contribute

Prerequisites ✅

Installation 🔧

  1. Clone this repository, then change your working directory.

    git clone git@github.com:collective/collective.catalogtrace.git
    cd collective.catalogtrace
    
  2. Install this code base.

    make install
    

License

The project is licensed under GPLv2.

Credits and acknowledgements 🙏

Generated using Cookieplone (0.9.10) and cookieplone-templates (888ff69) on 2025-11-03 14:45:41.122916. A special thanks to all contributors and supporters!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective_catalogtrace-1.0.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collective_catalogtrace-1.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file collective_catalogtrace-1.0.1.tar.gz.

File metadata

  • Download URL: collective_catalogtrace-1.0.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for collective_catalogtrace-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1576b0f6e61f7c93c71f1d3ed51a2f338c0e032f746424ce7b971177f8f724c6
MD5 1fb512f37e53827842ac212029944fd4
BLAKE2b-256 3b26a525585a0256aaebf293ef1bc2d884d678007e68f65828ce8f600d8f6c20

See more details on using hashes here.

File details

Details for the file collective_catalogtrace-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for collective_catalogtrace-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d2e7743920f9a1f53f3c106df3a8a00c58dcd0c1a54b2de9ed37ec66c3d86e
MD5 33c0413556f07dd2eac63534b7335e9a
BLAKE2b-256 e208bb8f890e69f0684b660413397c88e663ddcd89d445254b57335887d8ada5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page