LookupVindex create
vtctldclient LookupVindex create
Create the Lookup Vindex in the specified keyspace and backfill it with a VReplication workflow.
1. vtctldclient LookupVindex create
Examples
1. vtctldclient --server localhost:15999 LookupVindex --name corder_lookup_vdx --table-keyspace customer create --keyspace customer --type consistent_lookup_unique --table-owner corder --table-owner-columns sku --table-name corder_lookup_tbl --table-vindex-type unicode_loose_xxhash
Options
1. --cells strings Cells to look in for source tablets to replicate from.
2. --continue-after-copy-with-owner Vindex will continue materialization after the backfill completes when an owner is provided. (default true)
3. -h, --help help for create
4. --ignore-nulls Do not add corresponding records in the lookup table if any of the owner table's 'from' fields are NULL.
5. --keyspace string The keyspace to create the Lookup Vindex in. This is also where the table-owner must exist.
6. --table-name string The name of the lookup table. If not specified, then it will be created using the same name as the Lookup Vindex.
7. --table-owner string The table holding the data which we should use to backfill the Lookup Vindex. This must exist in the same keyspace as the Lookup Vindex.
8. --table-owner-columns strings The columns to read from the owner table. These will be used to build the hash which gets stored as the keyspace_id value in the lookup table.
9. --table-vindex-type string The primary vindex name/type to use for the lookup table, if the table-keyspace is sharded. This must match the name of a vindex defined in the table-keyspace. If no value is provided then the default type will be used based on the table-owner-columns types.
10. --tablet-types strings Source tablet types to replicate from.
11. --tablet-types-in-preference-order When performing source tablet selection, look for candidates in the type order as they are listed in the tablet-types flag. (default true)
12. --type string The type of Lookup Vindex to create.
Options inherited from parent commands
1. --action_timeout duration timeout to use for the command (default 1h0m0s)
2. --compact use compact format for otherwise verbose outputs
3. --name string The name of the Lookup Vindex to create. This will also be the name of the VReplication workflow created to backfill the Lookup Vindex.
4. --server string server to use for the connection (required)
5. --table-keyspace string The keyspace to create the lookup table in. This is also where the VReplication workflow is created to backfill the Lookup Vindex.
SEE ALSO
- vtctldclient LookupVindex - Perform commands related to creating, backfilling, and externalizing Lookup Vindexes using VReplication workflows.
