Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5382

SQL: frequent switch between schemas cause severe slowdown

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • cache, sql

    Description

      We have thread-bound cached connection to H2 database which is bound to specific schema. See IgniteH2Indexing.connectionForThread.

      When query with different schema is executed, we call SET SCHEMA command, which is rather expensive and may cause slowdown when queries form different caches are executed.

      To avoid this we should maintain thread-local map of such connections. Be careful with concurrency and resource leaks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vozerov Vladimir Ozerov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m