{"id":13355,"date":"2022-06-06T13:34:28","date_gmt":"2022-06-06T20:34:28","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=13355"},"modified":"2025-12-11T13:02:57","modified_gmt":"2025-12-11T21:02:57","slug":"second-patent-granted-to-couchbase-for-cost-based-optimization","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/","title":{"rendered":"Second Patent Granted to Couchbase for Cost-Based Optimization"},"content":{"rendered":"<p><span style=\"font-weight: 400\">On April 5, 2022, the US Patent and Trademark Office granted a second patent to Couchbase for its <\/span><a href=\"https:\/\/patft.uspto.gov\/netacgi\/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=%2Fnetahtml%2FPTO%2Fsearch-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=raghupathi&amp;s2=murthy&amp;OS=raghupathi+AND+murthy&amp;RS=raghupathi+AND+murthy\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">novel approach to optimizing document-oriented database queries on arrays<\/span><\/a><span style=\"font-weight: 400\">! This feature has been available since Couchbase Server 7.1 and Couchbase Capella 7.0 but this patent recognizes our innovation in cost-based optimization for document-oriented databases.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Optimizing queries is a science that has been ongoing in relational data systems since the 1970s. And consistent with our leadership in bringing innovations to market, <\/span><a href=\"https:\/\/patft.uspto.gov\/netacgi\/nph-Parser?Sect1=PTO2&amp;Sect2=HITOFF&amp;p=1&amp;u=%2Fnetahtml%2FPTO%2Fsearch-bool.html&amp;r=1&amp;f=G&amp;l=50&amp;co1=AND&amp;d=PTXT&amp;s1=11,200,230&amp;OS=11,200,230&amp;RS=11,200,230\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Couchbase has been recognized for deeply technical work <\/span><\/a><span style=\"font-weight: 400\">in bringing query optimization to unstructured data in a JSON format. The Couchbase engineering team has been at the forefront of evolving the performance of document databases for the past decade. Our engineers&#8217; commitment to excellence is the reason why some of the largest enterprises in the world now trust Couchbase for their mission-critical applications. We have recently patented a novel approach to cost-based optimization (CBO) for document-oriented database queries on arrays as part of this commitment. Couchbase engineering continues to bring the power of cost-based optimization to NoSQL, and this patent grant recognizes our continued innovation.\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">We congratulate <\/span><a href=\"https:\/\/www.linkedin.com\/in\/bingjie-miao-913a213\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Bingjie Miao<\/span><\/a><span style=\"font-weight: 400\">, <\/span><a href=\"https:\/\/www.linkedin.com\/in\/keshavamurthy\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Keshav Murthy<\/span><\/a><span style=\"font-weight: 400\">, <\/span><a href=\"https:\/\/www.linkedin.com\/in\/marco-greco-7665308\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Marco Greco<\/span><\/a><span style=\"font-weight: 400\">, and <\/span><a href=\"https:\/\/www.linkedin.com\/in\/prathibha-bisarahalli-0936a18\/?originalSubdomain=in\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Prathibha Bisarahalli<\/span><\/a><span style=\"font-weight: 400\"> for their continued impressive work in the field of Cost-based Optimization!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">This post will dive into cost-based optimization (CBO), why it matters, and why CBO for queries to document databases is unique to Couchbase.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">What is Cost-based Optimization?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Cost-based optimization (or CBO) is a process for selecting the most efficient way to execute a database query by considering the cost of memory, CPU, network transport, and disk usage. CBO compares the cost of alternative query routes and then selects the query-execution plan with the least cost.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Keshav Murthy, our VP of Engineering and one of the patent authors, uses the following map analogy to explain what CBO is:<\/span><\/p>\n<p style=\"padding-left: 40px\"><em><span style=\"font-weight: 400\">One way to grasp CBO is to consider an airplane <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Flight_plan\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">flight plan<\/span><\/a><span style=\"font-weight: 400\">: a plane can take any number of paths to go from San Francisco to S\u00e3o Paulo, but there are only a few optimal paths when you consider fuel costs, wind resistance, air traffic, etc. Similarly, a database query needs a query plan. There are many ways to run the query, but only a few optimal plans.\u00a0<\/span><\/em><\/p>\n<p style=\"padding-left: 40px\"><em><span style=\"font-weight: 400\">One way to select a query path is to use a Rule-based Optimization (RBO), which makes query path decisions based on rules (e.g., always prefer indexes with the most keys). However, RBO can get very messy and inefficient very quickly. And it rarely yields the most optimal query path. In the NoSQL database world, most databases still leverage rule-based optimization.<\/span><\/em><\/p>\n<p style=\"padding-left: 40px\"><em><span style=\"font-weight: 400\">Cost-based optimization takes a user-submitted query, selects from millions of query plans, and chooses the most performant and resource-efficient plan for query execution based on statistics.\u00a0<\/span><\/em><\/p>\n<h2><span style=\"font-weight: 400\">Why does Cost-based Optimization matter?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">The implications of CBO are that queries leverage less memory, less disk, less IO, fewer partitions, and less overflow, which leads to lower latency and lower cost for users. This is particularly meaningful for databases that handle a large number of transactions\u2013\u2013even minor performance improvements can have a significant impact.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Keshav Murthy went on to explain why CBO matters, again using a map analogy:<\/span><\/p>\n<p style=\"padding-left: 40px\"><em><span style=\"font-weight: 400\">When it matters \u2014 like getting to your kid&#8217;s recital or a ballgame on time \u2014 would you use a static direction map that doesn&#8217;t account for the traffic? Google Maps&#8217; route optimizer will optimize for time. The optimizers develop a plan to execute the query with the least resources: CPU and memory. Knowing this, why would you accept a static rule (or <\/span><a href=\"https:\/\/docs.mongodb.com\/manual\/core\/query-plans\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">query shape<\/span><\/a><span style=\"font-weight: 400\">!) based optimization of your business-critical database workload?<\/span><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13356\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/06\/image_2022-06-06_115548110-1024x836.png\" alt=\"cost-based optimization in a mapping application\" width=\"600\" height=\"489\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-06_115548110-1024x836.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-06_115548110-300x245.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-06_115548110-768x627.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-06_115548110-20x16.png 20w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-06_115548110.png 1170w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p style=\"padding-left: 40px\"><em><span style=\"font-weight: 400\">The database query optimizer makes decisions. These decisions have major implications on query performance, system throughput, and your ability to meet the SLAs. Databases with a better optimizer will make it easier to develop, manage and meet the SLAs.\u00a0<\/span><\/em><\/p>\n<h2><span style=\"font-weight: 400\">How CBO for document-oriented database queries on arrays is unique to Couchbase<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Cost-based optimization (CBO) for SQL has existed for more than <\/span><a href=\"https:\/\/courses.cs.duke.edu\/\/compsci516\/cps216\/spring03\/papers\/selinger-etal-1979.pdf\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">40 years<\/span><\/a><span style=\"font-weight: 400\"> and has been critical to the success of RDBMS and developer productivity. However, CBO was not generally available for document database queries until Couchbase implemented CBO for SQL++ (formerly known as N1QL) with the Couchbase Server 6.5 release in 2019. Since then, our customers have enjoyed the performance benefits of CBO for their queries\u2013\u2013which is particularly important for many of our customers that rely on the high performance of Couchbase to power their most mission-critical applications.<\/span><\/p>\n<hr \/>\n<p><span style=\"font-weight: 400\">The patent grant represents a technical commitment from Couchbase to deliver the best elements of SQL for our NoSQL Database platform. And with the recent patent grant, Couchbase is the only document database provider that intelligently executes cost-based optimization for NoSQL database queries\u2013\u2013which has enormous implications on performance and cost. Before deciding on a NoSQL database, ask your vendor:\u00a0 <\/span><b><i>Do you have a cost-based optimizer?<\/i><\/b><\/p>\n<p><span style=\"font-weight: 400\">Congratulations to our engineering team for their continued hard work to evolve the standard of excellence for document databases.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Learn More about Cost-Based Optimization for Couchbase!<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Watch a <\/span><a href=\"https:\/\/youtu.be\/EaZaOLjCqKU\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">short video<\/span><\/a><span style=\"font-weight: 400\"> or read the <\/span><span style=\"font-weight: 400\">documentation<\/span><span style=\"font-weight: 400\"> for an overview of <a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/cost-based-optimizer.html\" target=\"_blank\" rel=\"noopener\">Cost-Based Optimization in N1QL<\/a>.<\/span><\/p>\n<p><iframe loading=\"lazy\" title=\"Couchbase: Cost Based Optimizer Overview in N1QL (Query Service)\" width=\"900\" height=\"506\" src=\"https:\/\/www.youtube.com\/embed\/EaZaOLjCqKU?feature=oembed&#038;enablejsapi=1&#038;origin=https:\/\/www.couchbase.com\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p><span style=\"font-weight: 400\">For a deep dive into CBO for SQL++, I recommend reading the following blog posts by Keshav Murthy, our VP of Engineering:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/why-cost-based-optimizer-for-nosql-n1ql-couchbase\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Less is More: Why use a Cost-Based Optimizer?<\/span><\/a><\/li>\n<li><a href=\"https:\/\/www.couchbase.com\/blog\/cost-based-optimizer-for-couchbase-n1ql-sql-for-json\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Cost-Based Optimizer for Couchbase SQL++ (aka N1QL)<\/span><\/a><\/li>\n<li><a href=\"https:\/\/dzone.com\/articles\/arrays-in-json-modeling-querying-and-indexing-perf\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Arrays in JSON: Modeling, Querying and Indexing Performance<\/span><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Thank you for reading!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On April 5, 2022, the US Patent and Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document-oriented database queries on arrays! This feature has been available since Couchbase Server 7.1 and Couchbase Capella 7.0 [&hellip;]<\/p>\n","protected":false},"author":82066,"featured_media":12716,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[3917,1816,1812],"tags":[2401,9361,9643],"ppma_author":[9657],"class_list":["post-13355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-company","category-couchbase-server","category-n1ql-query","tag-cbo","tag-cost-based-optimizer","tag-patent"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v26.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Second Patent Granted to Couchbase for Cost-Based Optimization<\/title>\n<meta name=\"description\" content=\"US Patent &amp; Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.\" \/>\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.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Second Patent Granted to Couchbase for Cost-Based Optimization\" \/>\n<meta property=\"og:description\" content=\"US Patent &amp; Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-06T20:34:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-11T21:02:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1829\" \/>\n\t<meta property=\"og:image:height\" content=\"2560\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Couchbase Product Marketing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Couchbase Product Marketing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\"},\"author\":{\"name\":\"Couchbase Product Marketing\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/befa2a9de827aed2f8354f939cd6598e\"},\"headline\":\"Second Patent Granted to Couchbase for Cost-Based Optimization\",\"datePublished\":\"2022-06-06T20:34:28+00:00\",\"dateModified\":\"2025-12-11T21:02:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\"},\"wordCount\":905,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg\",\"keywords\":[\"cbo\",\"cost-based optimizer\",\"patent\"],\"articleSection\":[\"Company\",\"Couchbase Server\",\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\",\"name\":\"Second Patent Granted to Couchbase for Cost-Based Optimization\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg\",\"datePublished\":\"2022-06-06T20:34:28+00:00\",\"dateModified\":\"2025-12-11T21:02:57+00:00\",\"description\":\"US Patent & Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg\",\"width\":1829,\"height\":2560,\"caption\":\"Guide to Vector Search\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Second Patent Granted to Couchbase for Cost-Based Optimization\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/befa2a9de827aed2f8354f939cd6598e\",\"name\":\"Couchbase Product Marketing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/5112ed57023bd2807ae7086c2fe68752\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4760a19fc4ed6b8b830ba98f0869ed0d8ee6729e2593881e1a68032b9c281d5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4760a19fc4ed6b8b830ba98f0869ed0d8ee6729e2593881e1a68032b9c281d5d?s=96&d=mm&r=g\",\"caption\":\"Couchbase Product Marketing\"},\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/couchbase-pmm\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Second Patent Granted to Couchbase for Cost-Based Optimization","description":"US Patent & Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.","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.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/","og_locale":"en_US","og_type":"article","og_title":"Second Patent Granted to Couchbase for Cost-Based Optimization","og_description":"US Patent & Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.","og_url":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/","og_site_name":"The Couchbase Blog","article_published_time":"2022-06-06T20:34:28+00:00","article_modified_time":"2025-12-11T21:02:57+00:00","og_image":[{"width":1829,"height":2560,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg","type":"image\/jpeg"}],"author":"Couchbase Product Marketing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Couchbase Product Marketing","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/"},"author":{"name":"Couchbase Product Marketing","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/befa2a9de827aed2f8354f939cd6598e"},"headline":"Second Patent Granted to Couchbase for Cost-Based Optimization","datePublished":"2022-06-06T20:34:28+00:00","dateModified":"2025-12-11T21:02:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/"},"wordCount":905,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg","keywords":["cbo","cost-based optimizer","patent"],"articleSection":["Company","Couchbase Server","SQL++ \/ N1QL Query"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/","url":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/","name":"Second Patent Granted to Couchbase for Cost-Based Optimization","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg","datePublished":"2022-06-06T20:34:28+00:00","dateModified":"2025-12-11T21:02:57+00:00","description":"US Patent & Trademark Office granted a second patent to Couchbase for its novel approach to optimizing document database queries on arrays.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/01\/alex-rodriguez-santibanez-AIvKJfwMcd8-unsplash-scaled.jpg","width":1829,"height":2560,"caption":"Guide to Vector Search"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/second-patent-granted-to-couchbase-for-cost-based-optimization\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Second Patent Granted to Couchbase for Cost-Based Optimization"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/befa2a9de827aed2f8354f939cd6598e","name":"Couchbase Product Marketing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/5112ed57023bd2807ae7086c2fe68752","url":"https:\/\/secure.gravatar.com\/avatar\/4760a19fc4ed6b8b830ba98f0869ed0d8ee6729e2593881e1a68032b9c281d5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4760a19fc4ed6b8b830ba98f0869ed0d8ee6729e2593881e1a68032b9c281d5d?s=96&d=mm&r=g","caption":"Couchbase Product Marketing"},"url":"https:\/\/www.couchbase.com\/blog\/author\/couchbase-pmm\/"}]}},"authors":[{"term_id":9657,"user_id":82066,"is_guest":0,"slug":"couchbase-pmm","display_name":"Couchbase Product Marketing","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-17_105452255.png","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/06\/image_2022-06-17_105452255.png"},"author_category":"","last_name":"","first_name":"Couchbase Product Marketing","job_title":"","user_url":"","description":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/13355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/82066"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=13355"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/13355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/12716"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=13355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=13355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=13355"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=13355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}