Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9624

Queries: Add logging to determine the caller

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.42.0
    • query
    • None

    Description

      It's often helpful to know the caller (module) of a query:

      • queries that read many nodes
      • queries that exceed the limits
      • queries that are slow
      • queries that don't use an index
      • query statistics

      Some configuration is needed, e.g. which packages to ignore. A simple way would be to create the stack trace, and iterate over the elements. It would be a bit slow if done for each query however - e.g. we shouldn't probably do it for very fast internal queries (like, oak-internal queries).

      Attachments

        Activity

          People

            fortino Fabrizio Fortino
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: