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

Ability to disable WAL globally for data region

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cache
    • None

    Description

      Recently we introduced a set of commands to control WAL state of particular caches. I.e. using SQL API user could do the following to disable WAL in order to speedup data load:

      ALTER TABLE my_table NOLOGGING
      

      Now consider that user has a lot of tables and would like to disable WAL for the whole data region at once (e.g. to load data for the whole schema). Currently to achieve this he would have to issue a number of commands for each and every table.

      Instead, we should provide tiered approach, when user could disable WAL for both cache and data region. Proposed commands:

      ALTER DATA REGION my_region NOLOGGING; // Disable for region
      ALTER TABLE my_table NOLOGGING;        // Disable for table
      

      NOTE
      Semantics of tiered behaviour should be designed carefully. E.g. it should be possible to have a data region with disabled WAL, while still being able to have a cache in it with enabled WAL. Please refer to Oracle's NOLOGGING handling.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: