{"id":16940,"date":"2026-10-13T09:53:15","date_gmt":"2026-10-13T16:53:15","guid":{"rendered":"https:\/\/www.pingcap.com\/?post_type=article&#038;p=16940"},"modified":"2026-10-13T09:57:21","modified_gmt":"2026-10-13T16:57:21","slug":"revolutionizing-mysql-with-vector-similarity-search","status":"publish","type":"article","link":"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/","title":{"rendered":"MySQL Vector Similarity Search: Options and SQL Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">MySQL Community 9.x can store a VECTOR column, but it cannot compute the distance between two of them. The DISTANCE() function ships only in MySQL HeatWave on OCI and MySQL AI, so a team running stock MySQL ends up doing similarity math in application code or syncing embeddings into a second database that lags behind the source tables. MySQL vector similarity search is possible in 2026, and the path you pick decides how much of that overhead you carry.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide compares the MySQL-ecosystem options, then shows working SQL for indexed vector search, index verification, and relational filtering in <a href=\"https:\/\/www.pingcap.com\/what-is-tidb\/\">TiDB<\/a>, a distributed SQL database that speaks the MySQL wire protocol.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Is_Vector_Similarity_Search\"><\/span><strong>What Is Vector Similarity Search?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Vector similarity search returns the stored rows whose embeddings sit closest to a query embedding, measured by a distance function such as cosine distance or Euclidean (L2) distance. An embedding model converts text, images, or user behavior into a fixed-length array of floats, and items with similar meaning land near each other. The database\u2019s job is to return the top K nearest rows fast enough to sit inside a user request.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Exact K-nearest neighbor (KNN) search compares the query against every stored vector, so its cost grows linearly with row count. Approximate nearest neighbor (ANN) search walks an index such as HNSW (Hierarchical Navigable Small World) and visits a small fraction of vectors; TiDB\u2019s documentation reports recall generally above 90% at millisecond latency. High dimensionality hurts both, so use the shortest embedding your model supports.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MySQL_Vector_Database_Options_in_2026\"><\/span><strong>MySQL Vector Database Options in 2026<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Upstream MySQL 9.x added a VECTOR data type and helpers such as STRING_TO_VECTOR() and VECTOR_DIM(), but the Community and Commercial editions do not include DISTANCE(). That leaves six practical paths for teams who want a MySQL vector database, and they differ mainly in where the distance math runs.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Option<\/th><th>Where similarity is computed<\/th><th>Main tradeoff<\/th><\/tr><\/thead><tbody><tr><td>MySQL Community 9.x plus application code<\/td><td>In your application, after fetching candidate rows<\/td><td>Every query ships vectors over the network; no index<\/td><\/tr><tr><td>MySQL HeatWave on OCI or MySQL AI<\/td><td>DISTANCE() in SQL<\/td><td>Tied to Oracle\u2019s managed offerings<\/td><\/tr><tr><td>Cloud SQL for MySQL<\/td><td>SQL, after enabling the cloudsql_vector flag; ScaNN-based ANN indexes<\/td><td>Google Cloud only; bound to a single-primary instance<\/td><\/tr><tr><td>PlanetScale MySQL fork<\/td><td>Announced VECTOR type with an HNSW index in PlanetScale\u2019s fork<\/td><td>Runs on PlanetScale\u2019s fork, not upstream MySQL<\/td><\/tr><tr><td>TiDB<\/td><td>VEC_COSINE_DISTANCE() and VEC_L2_DISTANCE() in SQL; HNSW index on TiFlash<\/td><td>Index requires TiFlash replicas; feature labeled beta on TiDB Cloud<\/td><\/tr><tr><td>Separate vector database beside MySQL<\/td><td>Inside the vector database<\/td><td>A sync pipeline and a second system to secure and monitor<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your workload already runs on Google Cloud and fits on one instance, Cloud SQL is a reasonable choice. TiDB fits best when vectors need to sit next to transactional data that has outgrown a single MySQL node.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_TiDB_Adds_Distance_Functions_and_HNSW_Indexes_to_MySQL-Compatible_SQL\"><\/span><strong>How TiDB Adds Distance Functions and HNSW Indexes to MySQL-Compatible SQL<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">TiDB closes the gap described above by treating vectors as a native column type with distance functions and an ANN index, all reachable from any MySQL client. You declare a VECTOR(D) column of up to 16,383 dimensions, compute distance with VEC_COSINE_DISTANCE() or VEC_L2_DISTANCE(), and add an HNSW index that TiDB builds on <a href=\"https:\/\/docs.pingcap.com\/tidbcloud\/tiflash-overview\/\">TiFlash<\/a>, its columnar storage engine. When you define the index at table creation, TiDB creates the TiFlash replica for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example uses three-dimensional vectors for readability; production embeddings run to hundreds or thousands of dimensions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE products (<br>&nbsp; id BIGINT PRIMARY KEY,<br>&nbsp; name VARCHAR(255),<br>&nbsp; category VARCHAR(64),<br>&nbsp; price DECIMAL(10,2),<br>&nbsp; embedding VECTOR(3),<br>&nbsp; VECTOR INDEX idx_embedding ((VEC_COSINE_DISTANCE(embedding)))<br>);<br><br>INSERT INTO products VALUES<br>&nbsp; (1, 'Trail running shoe', 'footwear', 129.00, '&#91;0.12, 0.87, 0.33]'),<br>&nbsp; (2, 'Road running shoe', 'footwear', 119.00, '&#91;0.10, 0.91, 0.29]'),<br>&nbsp; (3, 'Rain jacket', 'outerwear', 89.00, '&#91;0.78, 0.05, 0.61]');<br><br>SELECT id, name,<br>&nbsp; &nbsp; &nbsp; VEC_COSINE_DISTANCE(embedding, '&#91;0.11, 0.89, 0.31]') AS distance<br>FROM products<br>ORDER BY VEC_COSINE_DISTANCE(embedding, '&#91;0.11, 0.89, 0.31]')<br>LIMIT 2;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To confirm the query uses the index, run EXPLAIN on it and look for annIndex:COSINE(&#8230;) in the operator info of the TiFlash table scan. TiDB uses the index only when the query orders by the index\u2019s distance function, ascending, with a LIMIT. If you add an index to an existing table that has no TiFlash replica, create one first with ALTER TABLE products SET TIFLASH REPLICA 1;. The <a href=\"https:\/\/docs.pingcap.com\/tidb\/stable\/vector-search-index\/\">vector search index docs<\/a> list the remaining restrictions, including no composite vector indexes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Vector search is available on TiDB Cloud Starter, Essential, and Dedicated, and on TiDB Self-Managed v8.4.0 or later (v8.5.0 or later recommended). TiDB Cloud documentation currently labels the feature beta, and the Self-Managed documentation marks it experimental, so check its status before a production rollout. For the storage-engine design behind it, see <a href=\"https:\/\/www.pingcap.com\/blog\/integrating-vector-search-into-tidb-for-ai-applications\/\">how TiDB built vector search into its storage engines<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Filtering_and_Joining_Vector_Results_With_Relational_Data\"><\/span><strong>Filtering and Joining Vector Results With Relational Data<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A vector query in TiDB is a SQL query, so you can join nearest neighbors to other tables and filter them in the same statement. One rule matters for speed: a WHERE clause that runs before the KNN step stops TiDB from using the vector index. Run the KNN search in a subquery first, then filter the smaller result set.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM (<br>&nbsp; SELECT id, name, category, price,<br>&nbsp; &nbsp; &nbsp; &nbsp; VEC_COSINE_DISTANCE(embedding, '&#91;0.11, 0.89, 0.31]') AS distance<br>&nbsp; FROM products<br>&nbsp; ORDER BY VEC_COSINE_DISTANCE(embedding, '&#91;0.11, 0.89, 0.31]')<br>&nbsp; LIMIT 50<br>) AS nearest<br>WHERE category = 'footwear' AND price &lt; 125<br>ORDER BY distance<br>LIMIT 10;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This pattern can return fewer than 10 rows when most of the top 50 fail the filter. Raise the inner LIMIT when your filters are selective.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.pingcap.com\/case-study\/dify-consolidates-massive-database-containers-into-one-unified-system-with-tidb\/\">Dify<\/a>, the open-source LLM application platform, runs this model in production. It uses TiDB Cloud Starter as its vector store alongside its other application data and consolidated nearly half a million database containers into a single TiDB Cloud implementation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Cases_for_Vector_Similarity_Search_in_MySQL_Applications\"><\/span><strong>Use Cases for Vector Similarity Search in MySQL Applications<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most production uses pair a nearest-neighbor lookup with a relational filter, which is where keeping vectors in the same database pays off.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RAG and semantic search:<\/strong> retrieve the top K document chunks for a question, filtered to the documents the current user may see, before passing them to an LLM.<\/li>\n\n\n\n<li><strong>Recommendations:<\/strong> embed items and user behavior, then drop out-of-stock or out-of-region items with a join to inventory.<\/li>\n\n\n\n<li><strong>Image search:<\/strong> store vision-model embeddings and return similar products with their prices.<\/li>\n\n\n\n<li><strong>Fraud detection:<\/strong> compare a new transaction\u2019s embedding against labeled fraud cases and route close matches to review.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more patterns and integrations, see <a href=\"https:\/\/www.pingcap.com\/ai\/vector-search\/\">vector search and RAG on TiDB<\/a> or the guide to <a href=\"https:\/\/www.pingcap.com\/solutions\/modernize-mysql-workloads\/\">modernizing MySQL workloads<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQ\"><\/span><strong>FAQ<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Quick answers for teams evaluating MySQL vector search.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Does MySQL 9 support vector similarity search?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>MySQL 9.x supports a VECTOR data type plus conversion and dimension functions.<\/li>\n\n\n\n<li>DISTANCE() is available only in MySQL HeatWave on OCI and MySQL AI.<\/li>\n\n\n\n<li>On Community or Commercial MySQL, distance math runs in application code or in another system.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is the difference between KNN and ANN vector search?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>KNN compares the query to every stored vector and returns exact results.<\/li>\n\n\n\n<li>ANN uses an index such as HNSW to visit a fraction of vectors and return results in milliseconds.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Should I use cosine distance or L2 distance?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the metric your embedding model was trained for; most text embedding models document cosine.<\/li>\n\n\n\n<li>In TiDB, the index and the query must use the same function or the index is skipped.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Does TiDB vector search work with existing MySQL drivers and AI frameworks?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Yes. Queries run over the MySQL protocol, so standard MySQL drivers connect unchanged.<\/li>\n\n\n\n<li>TiDB provides official <a href=\"https:\/\/docs.pingcap.com\/ai\/vector-search-integration-overview\">LangChain and LlamaIndex integrations<\/a>.<\/li>\n\n\n\n<li>Python users can install tidb-vector for SQLAlchemy and peewee, or django-tidb[vector] for Django.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Run_Your_First_MySQL_Vector_Similarity_Search_Query_on_TiDB_Cloud_Starter\"><\/span><strong>Run Your First MySQL Vector Similarity Search Query on TiDB Cloud Starter<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If your embeddings belong next to your MySQL data, TiDB gives you distance functions, an HNSW index, and relational joins in one SQL statement without a sync pipeline. <a href=\"https:\/\/tidbcloud.com\/free-trial\/\">Start a free TiDB Cloud Starter cluster<\/a> and run the sample query above against your own table.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL Community 9.x can store a VECTOR column, but it cannot compute the distance between two of them. The DISTANCE() function ships only in MySQL HeatWave on OCI and MySQL AI, so a team running stock MySQL ends up doing similarity math in application code or syncing embeddings into a second database that lags behind [&hellip;]<\/p>\n","protected":false},"author":305,"featured_media":0,"template":"","class_list":["post-16940","article","type-article","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB<\/title>\n<meta name=\"description\" content=\"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB\" \/>\n<meta property=\"og:description\" content=\"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-13T16:57:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"714\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data1\" content=\"7\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/revolutionizing-mysql-with-vector-similarity-search\\\/\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/revolutionizing-mysql-with-vector-similarity-search\\\/\",\"name\":\"MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#website\"},\"datePublished\":\"2026-10-13T16:53:15+00:00\",\"dateModified\":\"2026-10-13T16:57:21+00:00\",\"description\":\"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/revolutionizing-mysql-with-vector-similarity-search\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pingcap.com\\\/article\\\/revolutionizing-mysql-with-vector-similarity-search\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/revolutionizing-mysql-with-vector-similarity-search\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pingcap.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\\\/\\\/www.pingcap.com\\\/article\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MySQL Vector Similarity Search: Options and SQL Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/\",\"name\":\"TiDB\",\"description\":\"TiDB | SQL at Scale\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pingcap.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#organization\",\"name\":\"PingCAP\",\"url\":\"https:\\\/\\\/www.pingcap.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/static.pingcap.com\\\/files\\\/2021\\\/11\\\/pingcap-logo.png\",\"contentUrl\":\"https:\\\/\\\/static.pingcap.com\\\/files\\\/2021\\\/11\\\/pingcap-logo.png\",\"width\":811,\"height\":232,\"caption\":\"PingCAP\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pingcap.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/pingcap2015\",\"https:\\\/\\\/x.com\\\/PingCAP\",\"https:\\\/\\\/linkedin.com\\\/company\\\/pingcap\",\"https:\\\/\\\/youtube.com\\\/channel\\\/UCuq4puT32DzHKT5rU1IZpIA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB","description":"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/","og_locale":"ko_KR","og_type":"article","og_title":"MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB","og_description":"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.","og_url":"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_modified_time":"2026-10-13T16:57:21+00:00","og_image":[{"width":1440,"height":714,"url":"https:\/\/static.pingcap.com\/files\/2024\/09\/11005522\/Homepage-Ad.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@PingCAP","twitter_misc":{"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"7\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/article\/revolutionizing-mysql-with-vector-similarity-search\/","url":"https:\/\/www.pingcap.com\/article\/revolutionizing-mysql-with-vector-similarity-search\/","name":"MySQL Vector Similarity Search: Options and SQL Examples MySQL Vector Similarity Search: Options and SQL Examples | TiDB","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"datePublished":"2026-10-13T16:53:15+00:00","dateModified":"2026-10-13T16:57:21+00:00","description":"Compare MySQL vector similarity search options in 2026, then run indexed cosine-distance queries with working SQL in TiDB.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/article\/revolutionizing-mysql-with-vector-similarity-search\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/article\/revolutionizing-mysql-with-vector-similarity-search\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/article\/revolutionizing-mysql-with-vector-similarity-search\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/www.pingcap.com\/article\/"},{"@type":"ListItem","position":3,"name":"MySQL Vector Similarity Search: Options and SQL Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.pingcap.com\/#website","url":"https:\/\/www.pingcap.com\/","name":"\ud2f0DB","description":"TiDB | SQL at Scale","publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pingcap.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.pingcap.com\/#organization","name":"PingCAP","url":"https:\/\/www.pingcap.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/","url":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","contentUrl":"https:\/\/static.pingcap.com\/files\/2021\/11\/pingcap-logo.png","width":811,"height":232,"caption":"PingCAP"},"image":{"@id":"https:\/\/www.pingcap.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pingcap2015","https:\/\/x.com\/PingCAP","https:\/\/linkedin.com\/company\/pingcap","https:\/\/youtube.com\/channel\/UCuq4puT32DzHKT5rU1IZpIA"]}]}},"card_markup":"        <a class=\"card-article\" href=\"https:\/\/www.pingcap.com\/ko\/article\/revolutionizing-mysql-with-vector-similarity-search\/\">            <h3>MySQL Vector Similarity Search: Options and SQL Examples<\/h3>            <p>MySQL Community 9.x can store a VECTOR column, but it cannot compute the distance between two of them. The DISTANCE() function ships only in MySQL HeatWave on OCI and MySQL AI, so a team running stock MySQL ends up doing similarity math in application code or syncing embeddings into a second database that lags behind [&hellip;]<\/p>        <\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article\/16940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/305"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=16940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}