Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3906

SQL roles: add caching of the role grant graph for performance

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • SQL
    • Normal

    Description

      In the first implementation, the graph of the grant role relation is built as needed.
      For DDL statements this is acceptable, but less less so for the following case:

      When a session changes it's role from a non-null role ("old role"), any activations
      of prepared statements that relied on a role in "old role"s grant closure will need re-checking.
      So, computing this, requires the grant graph. Setting a role is a more frequent operations,
      e.g. in a stored routine, so re-building the grant graph each time is (too) expensive.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: