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

SQL Rename table support

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3
    • None
    • sql
    • None

    Description

      Use case was discussed at length here:
      http://apache-ignite-users.70518.x6.nabble.com/Continuous-update-Data-Grid-Cache-td2075.html#a17641

      Currently, we have to load data to second table, the client then has to
      change their query to query this
      new table. Drop the old table.

      The latest suggestion in the above thread to "load new data set in the same
      cache and remove old entries once preloading is finished" is not feasible
      since for large table and table scan query (thus requires whole dataset to
      be loaded), it will take a while to load everything - thus increasing the
      downtime.

      Table rename support will reduce the downtime greatly.

      Ref: Postgresql and H2 syntax
      ALTER TABLE TmpTable RENAME TO Table1;

      Then, one would wrap it within transaction (It appears that this is slated
      for 2.4/2.5?) to drop old table, rename temp table to original table.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Blackfield Blackfield
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: