Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

System COULD find out using models but the path is incomplete for more than 1 match possible for 'category' in theory. But this might not be needed. Instead, the following steps will be used;


Query Steps1)

  1. looks for xPath that ends with //category[@name='SciFi'] -> 0 results (existing behavior, no new code)

    NEW CODE 

...


  1. (if 0 results in step 1) look for xPath that ends with //category[@name=*] →  (OPTIMISATION STEP - could go straight to step 3)

      ...

        1. 0 results -> 'name' is NOT the key, continue with step

      ...

      ...

        1. 1+ results 'name' is key but value not found, no need to continue!

      ...

        1. (prevent unnecessary execution of step 3/performance hit , but need to document limitation if key-field for one list is non-key for other container with same name !
      1. ) Looks for XPath that ends with //category[@*] AND attributes(jsonb) contains "name='SciFi'"

      Note. the part for "attributes(jsonb) contains "name='SciFi'"" has already been implemented for another queryNote. Document limitations and existing cps path.