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.0.tar.gz (16.3 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.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: collective_catalogtrace-1.0.0.tar.gz
  • Upload date:
  • Size: 16.3 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.0.tar.gz
Algorithm Hash digest
SHA256 b5ce22463d4635b5ab51cca9e7302ed704342333e45288d8f5028ff9b8360ee4
MD5 f7301a6ba8cbf39ad7fd5fa540809c64
BLAKE2b-256 94e0a1783163c7983326e442ebfe910728c62e812a20898991442958a8ee7bbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for collective_catalogtrace-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9665e4d1709ddff59caf810324e09f0ae132fc28c702755faf7af165878236f1
MD5 6f4c0d6494eaeaa7cc0fe6b6ce84deeb
BLAKE2b-256 65c251637630ea7b5438bc2ffe189c9d414c2ba28097e267c244411f28253fb8

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