
{"id":5656,"date":"2024-05-01T07:21:30","date_gmt":"2024-05-01T07:21:30","guid":{"rendered":"https:\/\/test.opensource-db.in\/wp1\/?p=5656"},"modified":"2024-05-29T18:54:53","modified_gmt":"2024-05-29T18:54:53","slug":"mastering-pgbench-for-database-performance-tuning","status":"publish","type":"post","link":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/","title":{"rendered":"Mastering pgbench for Database Performance Tuning"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In today\u2019s world of databases, performance is one of the key aspects that need to be taken care-of irrespective of the size of the database. If you&#8217;re in charge of managing a PostgreSQL database, ensuring peak performance is undoubtedly a top priority. Enter pgbench, PostgreSQL&#8217;s own benchmarking powerhouse, designed to help you simulate workloads and test different database strategies to optimize efficiency. Whether you&#8217;re a seasoned DBA or just starting out, understanding how to leverage pgbench can be a game-changer for your database operations. This comprehensive guide will cover everything you need to know to get started with <code>pgbench<\/code>, interpret its results, and implement its insights for optimal database performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">pgbench<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>pgbench<\/code> is a benchmarking tool included with PostgreSQL that simulates a standard workload. A simple program for running benchmark tests on PostgreSQL.. By default, <code>pgbench<\/code> tests are based on the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Transaction_Processing_Performance_Council\" target=\"_blank\" rel=\"noreferrer noopener\">TPC<\/a>-B benchmark, which includes executing 5 <code>SELECT<\/code>, <code>INSERT<\/code>, and <code>UPDATE<\/code> commands per transaction. It is available as a part of the PostgreSQL installation. Using <code>pgbench<\/code> , we can simulate various workloads on <code>PostgreSQL<\/code> databases by generating multiple client connections and also by predefined scripts or set of parameters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" width=\"592\" height=\"55\" src=\"https:\/\/lh7-us.googleusercontent.com\/eyPJ7ZzxfACVaB-zORUN_SxpndWpTMdq_inARInL1ZLe5liun5tZZmhtQVYJLOQeeeOx-ouSnqQnPZ8TgmRH5NRod19Vhn5N_sefS5Nl3p87ss8rVuZRNVvQcOfzwx8iiv0IE-bRs9nwMjVqq6ksjFM\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up and running my first <code>pgbench<\/code> test<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>pgbench<\/code> should be invoked with the -i (initialize) option to create and populate these tables. While initializing <code>pgbench -i\u00a0 database_name<\/code>, it creates four tables <code>pgbench_accounts<\/code>, <code>pgbench_branches<\/code>, <code>pgbench_history<\/code>, <code>pgbench_tellers<\/code> dropping any existing tables of these names.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/As7-vI-kpZ_fF3FUqGsYZL-YSBfxBBFpjlfF1GEBwbqBo4yHNIBWy_iJUZucvodv_P0Wb5kns98peELmvnuYCuNqISM_AW7vk0vELotMF-iPZvd_wChrrXhwAV2lmc-oOM_yq2K3c99DW0MEswWFXJo\" width=\"602\" height=\"197\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However it will check for the previous tables of these names and create again whenever <code>-i<\/code> (initialize) is given. In order a scale up , with a scale factor <code>-s<\/code> of 20, it will insert data into the tables to represent a workload 20 times larger than the default scale. Each tuple inserted represents a row of data in the database tables as shown below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" width=\"602\" height=\"118\" src=\"https:\/\/lh7-us.googleusercontent.com\/DiLWIqmMXPOoyirJwx8Oe0NvSHrT7rOJXgHbxrmtrZ4dCwyADdcMLDwzVgvZw1dt3a35Uw4q_9nCZODo0SHftWKsqBIZNMYfVENd7XFUSf_bR5chkCa_QJBueoyNz2bp6Cazz0DTPs5u7ufKAsVKI7M\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are various parameters in pgbench to perform benchmark tests. The most common options are <code>-c<\/code> for number of clients,<code>-j<\/code> for number of threads, <code>-t<\/code> for number of transactions, <code>-T<\/code> for time limit and -f for specify a custom script file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Running pgbench<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Simulating the workload with 50 client connections and 100 transactions per client to database <code>mydb<\/code> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"226\" src=\"https:\/\/lh7-us.googleusercontent.com\/nDmX6Pfo7vMEbA5sAh8xZ_BoHTp56Vb_fpl8L88tlkOMLccJzFLKXP1tdepElQpFMYiYn4R1x7w2e1WiMR9adKcSo0Gdp7SVd_drtNNRzgy6WAjv_7Xptw-FxXeasrDjwybtXzpdyjUnrPK7HMkA100\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding the Output<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s analyze the output, there are some defaults that will be considered such as scaling factor =1 , number of threads =1 if you didn\u2019t give them in input.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Number of clients , Number of transactions per client is given as input to pgbench and number of transactions actually processed is the product of those two. There are zero transactions failed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Latency average<\/code> is the time taken to respond for a given request. It is measured in milliseconds . here it is 92.234ms<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Initial connection time<\/code> is the time taken for the client to establish connection with the server. Here it took 416.143ms<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most important is <code>tps<\/code> i.e transaction per seconds , it refers to the number of transactions processed by the system in one second time interval. It varies based on the complexity of transactions(or query) , system resources, concurrency levels, and database configuration. It is better to have high tps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tips and Tricks<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Understand the workloads &#8211; It is important to understand the workloads on application and simulate accordingly using customized SQL scripts and adjusting scale factor.<\/li>\n\n\n\n<li>Controlling concurrency level &#8211; We can control the concurrency level&nbsp; in the <code>pgbench<\/code> test using the options -c and -j accordingly.<\/li>\n\n\n\n<li>Monitor System Metrics &#8211; Use system monitoring tools such as top to monitor CPU usage, memory utilization, disk I\/O, and network activity during <code>pgbench<\/code> tests.&nbsp;<\/li>\n\n\n\n<li>Tune PostgreSQL configurations &#8211; Adjust <code>postgresql.conf<\/code> parameters , such as <code>shared_buffers<\/code>, <code>max_connections<\/code>, <code>work_mem<\/code> based on results.<\/li>\n\n\n\n<li>Run multiple tests &#8211; To get the accurate assessment on performance , run the multiple <code>pgbench<\/code> tests.<\/li>\n\n\n\n<li>Documentation &#8211; Documenting the methodologies &amp; results of your testing activities will help in further analysis.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common pitfalls to avoid in database benchmarking<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Doing the benchmark testing without understanding the workload.<\/li>\n\n\n\n<li>Running the test on the insufficient CPU, memory, storage, and network resources to support the expected workload.<\/li>\n\n\n\n<li>Incorrect benchmarking tools and methodologies can lead to incorrect results.<\/li>\n\n\n\n<li>Not testing on realistic conditions or failing to replicate the environment conditions leads to improper results.<\/li>\n\n\n\n<li>Considering the result of single test rather than the average of multiple tests<\/li>\n\n\n\n<li>No proper documentation<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To summarize, effective benchmarking is crucial for the optimal performance and scalability of databases.By leveraging benchmarking tools such as <code>pgbench<\/code>, database administrators and developers can simulate real-world workloads, measure performance metrics, and identify areas for optimization. However, successful benchmarking requires careful planning, execution, and analysis.In this blog, we have explored some features and results of <code>pgbench<\/code> including tips , tricks and also common pitfalls need to be avoided in database benchmarking. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you and stay tuned for more\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In today\u2019s world of databases, performance is one of the key aspects that need to be taken care-of irrespective [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":5658,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[52,1,23,89],"tags":[],"class_list":["post-5656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-customer-success","category-others","category-postgresql-14","category-postgresql-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mastering pgbench for Database Performance Tuning - OpenSource DB<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering pgbench for Database Performance Tuning - OpenSource DB\" \/>\n<meta property=\"og:description\" content=\"Introduction In today\u2019s world of databases, performance is one of the key aspects that need to be taken care-of irrespective [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\" \/>\n<meta property=\"og:site_name\" content=\"OpenSource DB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-01T07:21:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-29T18:54:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"269\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Shameer Bhupathi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:site\" content=\"@opensource_db\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shameer Bhupathi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\"},\"author\":{\"name\":\"Shameer Bhupathi\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/422480fbefed0b2cee82aeab232110f5\"},\"headline\":\"Mastering pgbench for Database Performance Tuning\",\"datePublished\":\"2024-05-01T07:21:30+00:00\",\"dateModified\":\"2024-05-29T18:54:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\"},\"wordCount\":750,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png\",\"articleSection\":[\"Customer Success\",\"Others\",\"PostgreSQL 14\",\"PostgreSQL 16\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\",\"name\":\"Mastering pgbench for Database Performance Tuning - OpenSource DB\",\"isPartOf\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png\",\"datePublished\":\"2024-05-01T07:21:30+00:00\",\"dateModified\":\"2024-05-29T18:54:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png\",\"width\":512,\"height\":269},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/test.opensource-db.in\/wp1\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering pgbench for Database Performance Tuning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#website\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"name\":\"OpenSource DB\",\"description\":\"Your Trusted OpenSource Databases partner\",\"publisher\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#organization\",\"name\":\"OPENSOURCE DB PRIVATE LIMITED\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"contentUrl\":\"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png\",\"width\":368,\"height\":120,\"caption\":\"OPENSOURCE DB PRIVATE LIMITED\"},\"image\":{\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/\",\"https:\/\/x.com\/opensource_db\",\"https:\/\/www.youtube.com\/channel\/UCmTI5h\",\"https:\/\/www.linkedin.com\/company\/opensource-db\",\"https:\/\/www.instagram.com\/opensource_db\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/422480fbefed0b2cee82aeab232110f5\",\"name\":\"Shameer Bhupathi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cfa95999202132ded07acd24f6faf25dca145a6c3efe47919204f115ffbf625?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cfa95999202132ded07acd24f6faf25dca145a6c3efe47919204f115ffbf625?s=96&d=mm&r=g\",\"caption\":\"Shameer Bhupathi\"},\"url\":\"https:\/\/test.opensource-db.in\/wp1\/author\/shameer-bhupathi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mastering pgbench for Database Performance Tuning - OpenSource DB","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Mastering pgbench for Database Performance Tuning - OpenSource DB","og_description":"Introduction In today\u2019s world of databases, performance is one of the key aspects that need to be taken care-of irrespective [&hellip;]","og_url":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/","og_site_name":"OpenSource DB","article_publisher":"https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","article_published_time":"2024-05-01T07:21:30+00:00","article_modified_time":"2024-05-29T18:54:53+00:00","og_image":[{"width":512,"height":269,"url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png","type":"image\/png"}],"author":"Shameer Bhupathi","twitter_card":"summary_large_image","twitter_creator":"@opensource_db","twitter_site":"@opensource_db","twitter_misc":{"Written by":"Shameer Bhupathi","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#article","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/"},"author":{"name":"Shameer Bhupathi","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/422480fbefed0b2cee82aeab232110f5"},"headline":"Mastering pgbench for Database Performance Tuning","datePublished":"2024-05-01T07:21:30+00:00","dateModified":"2024-05-29T18:54:53+00:00","mainEntityOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/"},"wordCount":750,"commentCount":0,"publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png","articleSection":["Customer Success","Others","PostgreSQL 14","PostgreSQL 16"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/","url":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/","name":"Mastering pgbench for Database Performance Tuning - OpenSource DB","isPartOf":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#website"},"primaryImageOfPage":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage"},"thumbnailUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png","datePublished":"2024-05-01T07:21:30+00:00","dateModified":"2024-05-29T18:54:53+00:00","breadcrumb":{"@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#primaryimage","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png","width":512,"height":269},{"@type":"BreadcrumbList","@id":"https:\/\/test.opensource-db.in\/wp1\/mastering-pgbench-for-database-performance-tuning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/test.opensource-db.in\/wp1\/"},{"@type":"ListItem","position":2,"name":"Mastering pgbench for Database Performance Tuning"}]},{"@type":"WebSite","@id":"https:\/\/test.opensource-db.in\/wp1\/#website","url":"https:\/\/test.opensource-db.in\/wp1\/","name":"OpenSource DB","description":"Your Trusted OpenSource Databases partner","publisher":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/test.opensource-db.in\/wp1\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/test.opensource-db.in\/wp1\/#organization","name":"OPENSOURCE DB PRIVATE LIMITED","url":"https:\/\/test.opensource-db.in\/wp1\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/","url":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","contentUrl":"https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2021\/10\/osdb-logo-tm-2.png","width":368,"height":120,"caption":"OPENSOURCE DB PRIVATE LIMITED"},"image":{"@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/OpenSource-DB\/100072970755470\/","https:\/\/x.com\/opensource_db","https:\/\/www.youtube.com\/channel\/UCmTI5h","https:\/\/www.linkedin.com\/company\/opensource-db","https:\/\/www.instagram.com\/opensource_db\/"]},{"@type":"Person","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/422480fbefed0b2cee82aeab232110f5","name":"Shameer Bhupathi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/test.opensource-db.in\/wp1\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cfa95999202132ded07acd24f6faf25dca145a6c3efe47919204f115ffbf625?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cfa95999202132ded07acd24f6faf25dca145a6c3efe47919204f115ffbf625?s=96&d=mm&r=g","caption":"Shameer Bhupathi"},"url":"https:\/\/test.opensource-db.in\/wp1\/author\/shameer-bhupathi\/"}]}},"rttpg_featured_image_url":{"full":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"portraits":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"thumbnail":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog-150x150.png",150,150,true],"medium":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog-300x158.png",300,158,true],"large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"1536x1536":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"2048x2048":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"ultp_layout_landscape_large":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"ultp_layout_landscape":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"ultp_layout_portrait":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false],"ultp_layout_square":["https:\/\/test.opensource-db.in\/wp1\/wp-content\/uploads\/2024\/05\/pgbench-blog.png",512,269,false]},"rttpg_author":{"display_name":"Shameer Bhupathi","author_link":"https:\/\/test.opensource-db.in\/wp1\/author\/shameer-bhupathi\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/business\/customer-success\/\" rel=\"category tag\">Customer Success<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/business\/others\/\" rel=\"category tag\">Others<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-14\/\" rel=\"category tag\">PostgreSQL 14<\/a> <a href=\"https:\/\/test.opensource-db.in\/wp1\/category\/postgres\/postgresql-16\/\" rel=\"category tag\">PostgreSQL 16<\/a>","rttpg_excerpt":"Introduction In today\u2019s world of databases, performance is one of the key aspects that need to be taken care-of irrespective [&hellip;]","_links":{"self":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/comments?post=5656"}],"version-history":[{"count":3,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5656\/revisions"}],"predecessor-version":[{"id":5664,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/posts\/5656\/revisions\/5664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media\/5658"}],"wp:attachment":[{"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/media?parent=5656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/categories?post=5656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/test.opensource-db.in\/wp1\/wp-json\/wp\/v2\/tags?post=5656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}