Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-616

Add support for Query binding

    XMLWordPrintable

Details

    Description

      Queries come in two kinds:

      1. one-shot
      2. multi-shot
      3. no-shot

      Well, we do not care about the last one

      At any rate, having an initial go at the Query, esp. with an EffectiveModelContext, we can prepare a match tree, so that things like wildcards are pre-marked, including map-leaf searches. The upshot is that:

      • we can perform schema-based validation and prune impossibilities (or warn, or throw on them)
      • we can optimize matches, i.e. realize when a query's predicates combine into a key equality: then we turn the query into a key-based lookup and a single match
      • we end up with beginnings of an 'query plan'
      • query evaluation has less logic, as knows ahead of time to distinct between direct lookups and searches

      The capability is especially important for multi-shot queries in a distributed environment: query preparation can transfer the query to the remote system and let it deal with much of the above. Subsequent executions do not need to transfer the query to the remote system.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: