Skip to content

Commit

Permalink
Update 2024.2 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hari90 committed Jan 25, 2025
1 parent f976939 commit 707311c
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,27 @@ However, to add a new index to a table that already has data, the following addi
Replication altered successfully
```
#### Adding indexes in bidirectional replication
#### Adding YCQL indexes in bidirectional replication
Stop all write traffic when adding a new index to a table that is bidirectionally replicated.
Stop all write traffic when adding a new index to a YCQL table that is bidirectionally replicated.
Follow the same steps as described in [Adding indexes in unidirectional replication](#adding-indexes-in-unidirectional-replication), followed by bootstrapping the index on the target universe and adding it to the source universe (steps 4 and 8 in the opposite direction).
#### Adding YSQL indexes in bidirectional replication
{{< note title="Note" >}}
For versions lower than v2024.2.2.0 follow the same steps as described in [Adding YCQL indexes in bidirectional replication](#adding-ycql-indexes-in-bidirectional-replication).
{{< /note >}}
New YSQL indexes are automatically added to xCluster replication if the YSQL table being indexed is bidirectionally replicated.
Adding new indexes is supported even if the table being indexed contains data and is actively receiving writes on both the universes.
Create the [index](../../../../api/ysql/the-sql-language/statements/ddl_create_index/) on both the universes **simultaneously**. xCluster will internally detect and add the new indexes to replication in both directions, and ensure all the data is backfilled.
{{< note title="Note" >}}
If the create index DDL statement is only issued on one universe, it will timeout and fail.
{{< /note >}}
### Removing objects
Objects (tables, indexes, partitions) need to be removed from replication before they can be dropped as follows:
Expand Down

0 comments on commit 707311c

Please sign in to comment.