Configuring Vector Storage
What Is a Vector?
A vector is a high-dimensional numerical representation generated from unstructured data, such as text or images, using an embedding model. Semantically similar data points are mapped to nearby coordinates in the vector space, allowing similarity to be measured by calculating distances between vectors. RDS calculates similarity using either of two metrics: Euclidean distance (L2) and cosine distance.
Traditional B+Tree indexes are designed for exact match and range queries and cannot efficiently support similarity search on high-dimensional vectors. To address this, RDS introduces HNSW vector indexing, which organizes vector data using a multi-layer neighbor graph. During query execution, the search begins at the top layer (entry node) and proceeds layer by layer to quickly locate candidates closest to the target vector. Ultimately, the top-K similar results are returned.
At the storage layer, each vector index corresponds to a hidden auxiliary table that persistently stores HNSW graph nodes and adjacency relationships. This design enables RDS to reuse InnoDB's transaction, recovery, and locking mechanisms, eliminating the need for a specialized storage engine and ensuring consistent, efficient vector search.
This section describes how to enable and disable vector storage on the RDS console.
Constraints
- To use this feature, submit a service ticket.
- Once vector storage is enabled, only the READ-COMMITTED transaction isolation level is supported. Setting the instance to any other isolation level will cause vector data restoration to this instance to fail.
- Only version 8.0 is supported and the kernel version must be 8.0.43.260600 or later.
- For details about kernel limitations and parameter details related to vector storage, see Vector Storage and Search.
Procedure
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, click the target instance name to go to the Summary page.
- Find the Vector Storage field and click Enable.
- In the displayed dialog box, click OK. Figure 1 Enabling vector storage
After vector storage is enabled, it takes about 1 minute to take effect.
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, click the target instance name to go to the Summary page.
- Find the Vector Storage field and click Disable.
- In the displayed dialog box, click OK. Figure 2 Disabling vector storage
After vector storage is disabled, it takes about 1 minute to take effect.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot