{"id":13656,"date":"2019-08-05T04:03:39","date_gmt":"2019-08-05T11:03:39","guid":{"rendered":"https:\/\/synergytop.com\/blog\/?p=13656"},"modified":"2026-03-30T06:18:35","modified_gmt":"2026-03-30T13:18:35","slug":"the-significance-of-in-memory-database","status":"publish","type":"post","link":"https:\/\/synergytop.com\/blog\/the-significance-of-in-memory-database\/","title":{"rendered":"The Significance of In-Memory Database"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1144px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\"><p><strong>What is the In-Memory Database?<\/strong><\/p>\n<p>In-Memory Database (IMDB) is also known as the Main Memory Database (MMDB) or Memory Resistance Database. It is a Database Management System that primarily accesses the main memory or RAM for the data storage. In-memory Database is faster and more accurate than the disk storage.<\/p>\n<p><strong>Constraints of In-Memory Database<\/strong><\/p>\n<p>In case of a system crash or lack of power supply, we cannot save the data in the In-Memory Database. It uses Volatile RAM which needs a power supply to maintain the stored data. Therefore, the In-Memory Database would not be able to offer the much-required Durability vis-\u00e0-vis the old database management system.<\/p>\n<p>However, is it possible to ensure the durability of data using any tool or plug-in in the In-Memory Database? Yes, we can!<\/p>\n<p><strong>Our Solution<\/strong><\/p>\n<p>We can store our e-commerce application data in the main memory and also persist each operation in the transaction log using the Transactional Logging mechanism. With this method, the In-memory database would acquire Persistence. Oracle Commerce utilizes Oracle Coherence for in-memory data-grid, thus providing high availability and scalability.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-18831 size-full\" src=\" https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1.png\" alt=\"in memory database with persistence\" width=\"800\" height=\"500\" srcset=\"https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1-200x125.png 200w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1-300x188.png 300w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1-400x250.png 400w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1-600x375.png 600w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1-768x480.png 768w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/In-Memory-Database-with-Persistence-1.png 800w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The diagram above showcases that <strong>In-Memory Database with persistence<\/strong> is quite fast. It does not allow the queries to slow down as they hit the main memory.<\/p>\n<p>On the other hand, we wonder what happens when the Application or system needs an update. Updates to the application uses the main memory, as well as the disk for maintaining the Transaction Log. Now, we have established that the disk is slower! It is now logical to assume that the entire operation would be slow as we use the disk for updates.<\/p>\n<p>We are using each update as a Transaction. Therefore, in the Transactional Logging mechanism, we recommend you to use the append-only way for each Transaction (update).<\/p>\n<p>Please refer to the given diagram &#8211;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-18833 size-full\" src=\" https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2.png\" alt=\"\" width=\"734\" height=\"263\" srcset=\"https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2-200x72.png 200w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2-300x107.png 300w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2-400x143.png 400w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2-600x215.png 600w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/New-transactions-all-apply-at-the-end-of-the-log-2.png 734w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>What different is the In-Memory Database from the regular Disk-based Database System?<\/p>\n<p>The Disk-based Database needs to read data from the disk on each query. On the other hand, the In-Memory Database does not use the disk until your Oracle Commerce system needs recovery during the system start-up; Thereby, making it faster than the disk-based database.<\/p>\n<p>Oracle commerce utilizes Oracle Coherence which can be seamlessly expanded by adding more memory and processing power.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-18835 size-full\" src=\" https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/Screenshot_25-1.png\" alt=\"in-memory database\" width=\"537\" height=\"142\" srcset=\"https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/Screenshot_25-1-200x53.png 200w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/Screenshot_25-1-300x79.png 300w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/Screenshot_25-1-400x106.png 400w, https:\/\/synergytop.com\/blog\/wp-content\/uploads\/2019\/08\/Screenshot_25-1.png 537w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/p>\n<p>The diagram above clarifies-<\/p>\n<p>The In-Memory Database doesn&#8217;t use the Disk until there is any change-operation to perform.<\/p>\n<p>In the case of a data-change operation, the In-Memory Database uses the Disk in the fastest manner and with persistence.<\/p>\n<p><strong>To Conclude <\/strong><\/p>\n<p>We would like to recommend another method to provide Durability to the In-Memory Database. You can choose to Snapshot the database! The Snapshot Transaction logs are compact and are quite capable of recovering the database. It is important to compress the logs as the bulkiness of the Transaction logs would make the recovery of the database a time-consuming task.<\/p>\n<p>However, the Snapshot alone cannot provide complete durability. It is, therefore, important to supplement it with a Transactional logging mechanism.<\/p>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":13665,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5349],"tags":[232,2845,228,259,393,2209,5435,390,5434,394,5432,5433,391,395,586,587,229,231,392,396,588,230,234,2844,233,2846],"class_list":["post-13656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-all","category-enterprise-applications","tag-in-memory-database","tag-in-memory-databases-explained","tag-oracle-atg","tag-oracle-commerce-cloud-developer-los-angeles","tag-oracle-commerce-cloud-developer-new-york","tag-oracle-commerce-cloud-service","tag-oracle-commerce-cloud-service-los-altos","tag-oracle-commerce-cloud-service-los-angeles","tag-oracle-commerce-cloud-service-new-jersey","tag-oracle-commerce-cloud-service-new-york","tag-oracle-commerce-cloud-service-san-diego","tag-oracle-commerce-cloud-service-usa","tag-oracle-commerce-company-los-angeles","tag-oracle-commerce-company-new-york","tag-oracle-commerce-developers-orange-county","tag-oracle-commerce-development-service-orange-county","tag-oracle-commerce-in-memory","tag-oracle-commerce-in-memory-database","tag-oracle-commerce-services-los-angeles","tag-oracle-commerce-services-new-york","tag-oracle-developers-orange-county","tag-oracle-in-memory","tag-significance-of-in-memory-database","tag-the-significance-of-in-memory-database","tag-what-is-the-in-memory-database","tag-you-need-to-know-about-in-memory-databases"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/posts\/13656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/comments?post=13656"}],"version-history":[{"count":5,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/posts\/13656\/revisions"}],"predecessor-version":[{"id":18834,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/posts\/13656\/revisions\/18834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/media\/13665"}],"wp:attachment":[{"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/media?parent=13656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/categories?post=13656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/synergytop.com\/blog\/wp-json\/wp\/v2\/tags?post=13656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}