Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-35152

DATA/INDEX DIRECTORY options are ignored for vector index

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • 11.7
    • Vector search
    • None

    Description

      DATA DIRECTORY and INDEX DIRECTORY work for main InnoDB tablespaces and MyISAM data/index files, but not for the vector index ones.
      I don't know whether it is meant to work, but given that vector index files can be very large, I think storing them in a separate location can be a realistic use case.

      --source include/have_innodb.inc
       
      --let $datadir= `select @@datadir`
      eval create table ti (a vector(1) not null, vector(a)) engine=InnoDB data directory '$MYSQL_TMP_DIR';
      eval create table tm (a vector(1) not null, vector(a)) engine=MyISAM data directory '$MYSQL_TMP_DIR' index directory '$MYSQL_TMP_DIR';
       
      --echo ######### MYSQL_TMP_DIR:
      --list_files $MYSQL_TMP_DIR/
      --echo ######### MYSQL_TMP_DIR/test:
      --list_files $MYSQL_TMP_DIR/test/
      --echo ######### datadir/test:
      --list_files $datadir/test/
       
      drop table ti, tm;
      

      bb-11.6-MDEV-32887-vector 764592a4da2a1b490471732fbefe2ce745ce1f32

      ######### MYSQL_TMP_DIR:
      check-mysqld_1.log
      check-mysqld_1.result
      mysqld.1
      mysqld.1.sock
      test
      tm.MYD
      tm.MYI
      ######### MYSQL_TMP_DIR/test:
      ti.ibd
      ######### datadir/test:
      db.opt
      ti#i#00.ibd
      ti.frm
      ti.isl
      tm#i#00.MYD
      tm#i#00.MYI
      tm.MYD
      tm.MYI
      tm.frm
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.