{"id":5376,"date":"2022-03-07T22:40:00","date_gmt":"2022-03-08T06:40:00","guid":{"rendered":"https:\/\/en.pingcap.com\/?p=5376"},"modified":"2024-08-21T05:48:46","modified_gmt":"2024-08-21T12:48:46","slug":"how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time","status":"publish","type":"post","link":"https:\/\/www.pingcap.com\/ko\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/","title":{"rendered":"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time"},"content":{"rendered":"\n<p>An important idea in the database world is that specialized databases will outperform general-purpose databases. Michael Stonebraker, an A. M. Turing Award Laureate and one of the most influential people in the database world, also discussed this in his paper, \u201cOne Size Fits All: An Idea Whose Time Has Come and Gone.&#8221;<sup>[1]<\/sup><\/p>\n\n\n\n<p>This is a rational judgment, because it\u2019s tough enough to build a database that supports <em>either<\/em> Online Transactional Processing (OLTP) <em>or<\/em> Online Analytical Processing (OLAP) workloads, let alone one that supports <em>both<\/em> at the same time. But the dilemma is, today, many users are facing increasing demands with mixed OLTP and OLAP workloads. How do we crack this dilemma?<\/p>\n\n\n\n<p>We, at PingCAP, provide a solution: TiDB, a Hybrid Transactional and Analytical Processing (HTAP) database that can handle mixed workloads. In this post, I will unveil the mystery of HTAP, and how an HTAP database can help users solve their problems.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"HTAP_%E2%89%A0_OLTP_OLAP\"><\/span>HTAP \u2260 OLTP + OLAP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As our section title indicates, an HTAP is <strong>NOT<\/strong> a straight integration of OLTP and OLAP.&nbsp;<\/p>\n\n\n\n<p>A good analogy is a motorhome. It\u2019s sometimes called \u201ca home on wheels,\u201d but it really isn\u2019t a combination of a car and house. Instead, <strong>a motorhome is a unique experience\u2014a special product to meet special needs. So is HTAP.<\/strong><\/p>\n\n\n\n<p>HTAP is designed for special scenarios, not solely OLTP, OLAP, or a combination of the two.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_rise_of_HTAP_scenarios\"><\/span>The rise of HTAP scenarios<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In recent years, the demand for real-time data processing and analytics has grown rapidly. Traditional databases that specialize more in offline data processing are failing to meet users\u2019 growing needs. There are two major reasons behind this.<\/p>\n\n\n\n<p><strong>First, the technology stacks for real-time data processing have been constantly developing and maturing. <\/strong>Take the big data ecosystem as an example. The real-time computation framework has evolved from Apache Storm with simple semantics, to Apache Storm with Trident on top of it, and then to Apache Flink with complex semantics and supplemented by built-in state storage. Only now, after all these changes, the stream processing framework has been widely adopted in many complicated real-time analytical scenarios. These frameworks are paired with downstream sinks with different characteristics, which in turn accelerate the innovation of real-time applications.&nbsp;<\/p>\n\n\n\n<p>In addition, users keep trying new ideas to digitize their business operations in real time; technology stacks become easier to use; and the development of database technology also stimulates the prevalence of real-time applications.&nbsp;<\/p>\n\n\n\n<p><strong>Second, the digital transformation process is speeding up in many traditional industries, generating new demands. <\/strong>Processing tasks that were once impossible are now requirements for a well-run business.&nbsp;&nbsp;<\/p>\n\n\n\n<p>Take China\u2019s express delivery industry as an example. As its market size continues to expand, delivery orders have grown enormously. The real-time monitoring and analytics of those orders has become a must and can help optimize all aspects of operations such as real-time delivery route optimization and penalty management. Traditional off-line analytics can\u2019t meet these demands\u2014especially during large shopping carnivals when peak transactions occur.&nbsp;<\/p>\n\n\n\n<p>Today, more and more users are facing scenarios with mixed workloads, rather than pure OLTP or OLAP. <strong>We call these HTAP scenarios<\/strong>. Traditional OLAP solutions are too cumbersome to meet the new demands, as are pure OLTP databases. What users really want is a solution that is in between OLTP and OLAP databases.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"HTAP%E2%80%94PingCAPs_solution\"><\/span>HTAP\u2014PingCAP\u2019s solution<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>At PingCAP, our product strategy is that <strong>TiDB is an OLTP-oriented database supplemented with an OLAP capability<\/strong>. That is to say, <strong>our ambition is in the fields of OLTP and HTAP. <\/strong>Since we are discussing HTAP today, I will skip the OLTP part and focus on HTAP.<\/p>\n\n\n\n<p>I explained earlier why HTAP is not a straight combination of OLTP and OLAP. I can explain a bit more from our own experience.&nbsp;<\/p>\n\n\n\n<p>Previously, we faced scenarios with many data hub applications. Users intended to converge data from data silos on different business lines to the same real-time centralized data store, and then deliver data services and analytics on top of it. In another case, users planned to build a read replica replicated from their OLTP database. This replica was used to support separate analytics and data serving workloads and respond to unlimited queries and analytical services.&nbsp;<\/p>\n\n\n\n<p>The scenarios above require the database to:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Have a distributed architecture similar to traditional data warehouses to uphold data aggregation with similar scale.<\/li>\n\n\n\n<li>Ensure data consistency and real-time performance as transactional databases do, and also provide index-based data recall and large-scale analytics based on columnstore.<\/li>\n\n\n\n<li>Connect smoothly with offline data warehouses.<\/li>\n<\/ul>\n\n\n\n<p>That is to say, <strong>the database has to focus on mixed OLTP and OLAP workloads<\/strong>. It can also be <strong>lighter than traditional data warehouses<\/strong> because it does not need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Have complicated computing models inside for offline scenarios.<\/li>\n\n\n\n<li>Support petabytes of data storage; the amount of real-time data usually does not reach the limit of a data warehouse\u2019s cold storage.<\/li>\n<\/ul>\n\n\n\n<p>We have also met with scenarios where the major task was transactional processing but real-time analytics was occasionally required.&nbsp;<\/p>\n\n\n\n<p>HTAP is what the scenarios above are all about. TiDB\u2019s HTAP capability is designed for those requirements, and it is <strong>real-time, agile, and light-weight<\/strong>:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Users can get access to transactions and make analytical queries at the same time through a unified front-end.<\/li>\n\n\n\n<li>Rowstore and columnstore are kept consistent in real time.<\/li>\n\n\n\n<li>The row and column resources are isolated, and the replication mechanism ensures load balancing and automatic fault recovery.<\/li>\n\n\n\n<li>Transactional services are processed in a stateless, stand-alone service node group, while analytical queries are processed in the vectorization accelerated, Massively Parallel Processing (MPP) mode.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>The diagram below shows how TiDB handles OLTP and OLAP workloads simultaneously and independently.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/static.pingcap.com\/files\/2022\/06\/tidb_arch-1024x549.png\" alt=\"\" class=\"wp-image-7413\" srcset=\"https:\/\/static.pingcap.com\/files\/2022\/06\/tidb_arch-1024x549.png 1024w, https:\/\/static.pingcap.com\/files\/2022\/06\/tidb_arch-300x161.png 300w, https:\/\/static.pingcap.com\/files\/2022\/06\/tidb_arch-768x412.png 768w, https:\/\/static.pingcap.com\/files\/2022\/06\/tidb_arch.png 1288w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>TiDB\u2019s architecture<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In addition, in scenarios with mixed workloads, it is impossible to clearly split complicated tasks and then use different types of databases to cope with them. <strong>But, by adopting TiDB, everything is different.&nbsp;<\/strong><\/p>\n\n\n\n<p>TiDB can be used as a data hub for users to make high-concurrency short queries with complex indexing just like they did with traditional databases. They can also use TiDB\u2019s columnstore and MPP technology on the same logical data to accelerate large-scale, real-time analytics, and its performance is never inferior to traditional specialized OLAP databases. What\u2019s more, TiDB\u2019s cost-based optimizer (CBO) can automatically allocate different types of queries to different storage or computing engines.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"User_cases\"><\/span>User cases<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let\u2019s see how TiDB\u2019s HTAP capability helps our customers solve their problems and achieve their business success.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ZTO Express&nbsp;<\/h3>\n\n\n\n<p>ZTO Express is a leading express delivery company in China and one of the largest in the world. <a href=\"https:\/\/en.pingcap.com\/case-study\/3x-it-efficiency-boost-use-a-scale-out-htap-database-for-near-real-time-analytics\/\">They use TiDB as their full-link logistics management platform database<\/a>.\u00a0<\/p>\n\n\n\n<p>On their management platform, the status of a delivery order updates constantly. In many cases, the status updates more frequently than new orders coming in. The management platform needs to monitor order status in real time, respond to order queries from mobile applications, and guarantee the analytical reporting is kept in real time.&nbsp;<\/p>\n\n\n\n<p>To meet such requirements, they wanted a database to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Support OLTP workloads.&nbsp;<\/li>\n\n\n\n<li>Support high-concurrency short queries from mobile applications.<\/li>\n\n\n\n<li>Be able to scale out easily, especially during large shopping festivals when peak transactions occur.<\/li>\n\n\n\n<li>Support real-time analytics without compromising service performance; the express delivery business is a constant race against time.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>This is a typical HTAP scenario with mixed OLTP and OLAP workloads. If they choose traditional database solutions, they have to introduce a very complicated architecture. Instead, TiDB\u2019s HTAP capability can perfectly meet all the requirements above. The image below shows the main process that TiDB handles our customer\u2019s mixed requirements.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-1024x477.jpg\" alt=\"\" class=\"wp-image-16690\" srcset=\"https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-1024x477.jpg 1024w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-300x140.jpg 300w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-768x358.jpg 768w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-1536x716.jpg 1536w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements-1440x671.jpg 1440w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050334\/The-main-flow-TiDB-handles-ZTO-Express-mixed-requirements.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>The main flow TiDB handles ZTO Express\u2019 mixed requirements<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Moreover, TiDB also helped ZTO Express:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Increase their real-time delivery tracking days from 30 to 45.<\/li>\n\n\n\n<li>Improve their IT efficiency by 300%.<\/li>\n\n\n\n<li>Reduce the response time of real-time reporting from 5 minutes to within 1 minute<\/li>\n\n\n\n<li>Increase the real-time data tracking days from 30 to 45 with a lower cost, when compared to their previous Exadata solution.&nbsp;<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">A leading internet company in China<\/h3>\n\n\n\n<p>This customer is a leading internet company in China. They deploy TiDB in their advertising system to support comprehensive ad queries and monitoring services.&nbsp;<\/p>\n\n\n\n<p>Advertising data is written to TiDB in real time. During peak hours, TiDB has to respond to a maximum of hundreds of thousands of queries per second (QPS) with mixed requests, including advertising details and records, index filtering, and analytical queries related to columnstore and MPP architecture.&nbsp;<\/p>\n\n\n\n<p>For such mixed types of queries on the same piece of data, TiDB is the best choice. TiDB\u2019s HTAP capability can perfectly support real-time data consistency between different systems during data synchronization. In addition, if you use traditional database combinations, it is difficult to manually route diversified query conditions between different storage engines. But TiDB, the HTAP solution with a CBO, can automatically dispatch different queries to different storage or computing engines.&nbsp;&nbsp;<\/p>\n\n\n\n<p>The image below shows the main flow that TiDB handles this customer\u2019s mixed workloads.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-1024x646.jpg\" alt=\"\" class=\"wp-image-16691\" srcset=\"https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-1024x646.jpg 1024w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-300x189.jpg 300w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-768x484.jpg 768w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-1536x968.jpg 1536w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads-1440x908.jpg 1440w, https:\/\/static.pingcap.com\/files\/2024\/05\/08050347\/The-main-process-TiDB-handles-this-customers-mixed-workloads.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>The main process TiDB handles this customer\u2019s mixed workloads<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Furthermore, TiDB helped this customer:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Save at least 40% of their server cost due to TiDB\u2019s simpler architecture.<\/li>\n\n\n\n<li>Maintain a stable performance at a record 250,000 QPS during their peak annual shopping day.&nbsp;<\/li>\n\n\n\n<li>Support real-time reporting service and uphold both detailed data recall and multidimensional analytics.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>You can learn about some of our other customer success stories <a href=\"https:\/\/www.pingcap.com\/customers\/?tag=htap\">here<\/a>.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span><strong>Summary<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>HTAP is not strictly a combination of OLTP and OLAP, but a hybrid and unique area. TiDB\u2019s HTAP capability is exactly designed for special scenarios with mixed workloads, and it has three major characteristics: <strong>real-time, agile, and light-weight<\/strong>.&nbsp;<\/p>\n\n\n\n<p>Every time we add a new feature to TiDB, we make sure it doesn\u2019t undermine the three characteristics. We don\u2019t want to let TiDB fall into unnecessary competition with traditional database products and lose its advantage.&nbsp;<\/p>\n\n\n\n<p>If you want to know more about HTAP, you can join <a href=\"https:\/\/slack.tidb.io\/invite?team=tidb-community&amp;channel=everyone&amp;ref=pingcap-blog\">our Slack channel<\/a> and talk to TiDB experts. You can also <a href=\"https:\/\/www.pingcap.com\/contact-us\/\">contact us<\/a> and request a demo.<\/p>\n\n\n\n<p><strong><em>References:<\/em><\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/cs.brown.edu\/~ugur\/fits_all.pdf\"><em>[1] One Size Fits All: An Idea Whose Time Has Come and Gone<\/em><\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP. <\/p>","protected":false},"author":62,"featured_media":5378,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[13],"tags":[10,11,111],"class_list":["post-5376","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product","tag-htap","tag-real-time-analytics","tag-tidb"],"acf":[],"featured_image_src":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","author_info":{"display_name":"Shawn Ma","author_link":"https:\/\/www.pingcap.com\/ko\/blog\/author\/shawn-ma\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How an HTAP Database Handles OLTP &amp; OLAP at the Same Time<\/title>\n<meta name=\"description\" content=\"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.\" \/>\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\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How an HTAP Database Handles OLTP &amp; OLAP at the Same Time\" \/>\n<meta property=\"og:description\" content=\"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pingcap.com\/ko\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\" \/>\n<meta property=\"og:site_name\" content=\"TiDB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pingcap2015\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-08T06:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-21T12:48:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1499\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Shawn Ma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:site\" content=\"@PingCAP\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shawn Ma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\"},\"author\":{\"name\":\"Shawn Ma\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/33ba97d494530cb5e04d4b17aaaa9b08\"},\"headline\":\"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time\",\"datePublished\":\"2022-03-08T06:40:00+00:00\",\"dateModified\":\"2024-08-21T12:48:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\"},\"wordCount\":1719,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.pingcap.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\",\"keywords\":[\"HTAP\",\"Real-time analytics\",\"TiDB\"],\"articleSection\":[\"Product\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\",\"url\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\",\"name\":\"How an HTAP Database Handles OLTP & OLAP at the Same Time\",\"isPartOf\":{\"@id\":\"https:\/\/www.pingcap.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\",\"datePublished\":\"2022-03-08T06:40:00+00:00\",\"dateModified\":\"2024-08-21T12:48:46+00:00\",\"description\":\"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage\",\"url\":\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\",\"width\":1499,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.pingcap.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time\"}]},{\"@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\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/33ba97d494530cb5e04d4b17aaaa9b08\",\"name\":\"Shawn Ma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"contentUrl\":\"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg\",\"caption\":\"Shawn Ma\"},\"url\":\"https:\/\/www.pingcap.com\/ko\/blog\/author\/shawn-ma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How an HTAP Database Handles OLTP & OLAP at the Same Time","description":"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.","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\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/","og_locale":"ko_KR","og_type":"article","og_title":"How an HTAP Database Handles OLTP & OLAP at the Same Time","og_description":"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.","og_url":"https:\/\/www.pingcap.com\/ko\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/","og_site_name":"TiDB","article_publisher":"https:\/\/facebook.com\/pingcap2015","article_published_time":"2022-03-08T06:40:00+00:00","article_modified_time":"2024-08-21T12:48:46+00:00","og_image":[{"width":1499,"height":500,"url":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","type":"image\/jpeg"}],"author":"Shawn Ma","twitter_card":"summary_large_image","twitter_creator":"@PingCAP","twitter_site":"@PingCAP","twitter_misc":{"Written by":"Shawn Ma","Est. reading time":"8\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#article","isPartOf":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/"},"author":{"name":"Shawn Ma","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/33ba97d494530cb5e04d4b17aaaa9b08"},"headline":"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time","datePublished":"2022-03-08T06:40:00+00:00","dateModified":"2024-08-21T12:48:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/"},"wordCount":1719,"commentCount":0,"publisher":{"@id":"https:\/\/www.pingcap.com\/#organization"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","keywords":["HTAP","Real-time analytics","TiDB"],"articleSection":["Product"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/","url":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/","name":"How an HTAP Database Handles OLTP & OLAP at the Same Time","isPartOf":{"@id":"https:\/\/www.pingcap.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage"},"image":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage"},"thumbnailUrl":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","datePublished":"2022-03-08T06:40:00+00:00","dateModified":"2024-08-21T12:48:46+00:00","description":"This post describes what HTAP is and how TiDB, an HTAP database, helps users handle their growing needs of mixed workloads of OLTP and OLAP.","breadcrumb":{"@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#primaryimage","url":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","contentUrl":"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg","width":1499,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.pingcap.com\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pingcap.com\/"},{"@type":"ListItem","position":2,"name":"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time"}]},{"@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"]},{"@type":"Person","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/33ba97d494530cb5e04d4b17aaaa9b08","name":"Shawn Ma","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.pingcap.com\/#\/schema\/person\/image\/","url":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","contentUrl":"https:\/\/static.pingcap.com\/files\/2022\/10\/17234942\/avatar.jpg","caption":"Shawn Ma"},"url":"https:\/\/www.pingcap.com\/ko\/blog\/author\/shawn-ma\/"}]}},"grav_blocks":false,"card_markup":"<a class=\"card-resource bg-white\" href=\"https:\/\/www.pingcap.com\/ko\/blog\/how-an-htap-database-handles-oltp-and-olap-workloads-at-the-same-time\/\"><div class=\"card-resource__image-container\"><img class=\"card-resource__image\" alt=\"How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time\" src=\"https:\/\/static.pingcap.com\/files\/2022\/03\/How-an-HTAP-Database-Handles-OLTP-and-OLAP-Workloads-at-the-Same-Time.jpeg\" loading=\"lazy\" width=1499 height=500 \/><\/div><div class=\"card-resource__content-container\"><div class=\"card-resource__content-head\"><div class=\"card-resource__category\">Product<\/div><\/div><h5 class=\"card-resource__title\">How an HTAP Database Handles OLTP and OLAP Workloads at the Same Time<\/h5><\/div><\/a>","_links":{"self":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/5376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/comments?post=5376"}],"version-history":[{"count":21,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/5376\/revisions"}],"predecessor-version":[{"id":17054,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/posts\/5376\/revisions\/17054"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media\/5378"}],"wp:attachment":[{"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/media?parent=5376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/categories?post=5376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pingcap.com\/ko\/wp-json\/wp\/v2\/tags?post=5376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}