Skip to content
Snippets Groups Projects
  1. Jan 19, 2023
    • Denis Smirnov's avatar
      feat: use spaces as virtual tables · 21f90b86
      Denis Smirnov authored
      We stop using VALUES to store temporary tuple on the storages and
      switch to the tarantool spaces instead. This is done to avoid the
      problems with the auto generated column names in VALUES, parser
      stack and parameters limitations.
      
      Tarantool forbids to use multiple space engines in a single transaction.
      So for vinyl tables we have to use vinyl spaces as a tepmorary storage.
      For memtx tables we can use temporary memtx spaces.
      
      One more important change is that we can't insert values of
      different numeric types in a number column (as we don't cast them
      as the local SQL does).
      21f90b86
  2. Jan 16, 2023
  3. Jan 14, 2023
  4. Dec 31, 2022
  5. Dec 30, 2022
  6. Dec 29, 2022
    • Denis Smirnov's avatar
      feat!: dispatch IR instead of the SQL with parameters · 214b55a5
      Denis Smirnov authored
      BREAKING CHANGE: api functions have changed signatures.
      
      This commit changes the way how the router dispatches commands to
      the storages. Previously, the router compiled the SQL statements
      with parameters from the plan subtrees and sent them to the storages.
      
      Now the router sends the raw IR subtrees to the storages.
      
      1. The subtrees are constructed from the original plan nodes
         for performance reasons: the node's memory chunk is extracted
         from the original plan tree (replaced with invalid parameter node)
         and reused in the sub-plan.
      2. The router-storage message consists of the two parts: required and
         optional. The required part is the hash of the sub-plan (excluding
         constants - analogue of the SQL pattern in the previous version)
         and parameters. The optional part is the IR itself and the syntax
         node tree (precompiled on the router to skip redundant work on the
         multiple storages). Storage uses a lazy deserialization of the message:
         - first it deserialized the part with the hash and parameters (to
           check the plan cache)
         - if the cache lookup failed, it deserializes the IR and the syntax
           node tree and updates the cache.
      3. The SHA256 hash was replaced with BLAKE3 for performance reasons.
      214b55a5
  7. Dec 23, 2022
  8. Dec 22, 2022
  9. Nov 28, 2022
  10. Nov 25, 2022
  11. Nov 22, 2022
  12. Nov 17, 2022
  13. Nov 07, 2022
  14. Nov 03, 2022
  15. Nov 02, 2022
  16. Oct 26, 2022
  17. Oct 25, 2022
  18. Oct 24, 2022
  19. Oct 21, 2022
  20. Oct 20, 2022
  21. Oct 19, 2022
  22. Oct 18, 2022
Loading