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

SQL: query with condition on affinity columns and without joins and subqueries should go to affinity node only

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8
    • 2.1
    • sql

    Description

      Simple SQL queries usually demonstrate negative scalability when more nodes are added.

      Consider the following query:

      SELECT * FROM Person p
      WHERE p.id = ?
      

      If Person.id is affinity field, then query can be replaced with plain IgniteCache.get or some specialized version of GET, which will return only desired fields. This optimization will guarantee smooth scale with any number of nodes.

      Attachments

        Issue Links

          Activity

            People

              skalashnikov Sergey Kalashnikov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: