Share to: share facebook share twitter share wa share telegram print page

In-memory database

An in-memory database (IMDb, or main memory database system (MMDB) or memory resident database) is a database management system that primarily relies on main memory for computer data storage. It is contrasted with database management systems that employ a disk storage mechanism. In-memory databases are faster than disk-optimized databases because disk access is slower than memory access and the internal optimization algorithms are simpler and execute fewer CPU instructions. Accessing data in memory eliminates seek time when querying the data, which provides faster and more predictable performance than disk.[1][2]

Applications where response time is critical, such as those running telecommunications network equipment and mobile advertising networks, often use main-memory databases.[3] IMDBs have gained much traction, especially in the data analytics space, starting in the mid-2000s – mainly due to multi-core processors that can address large memory and due to less expensive RAM.[4][5]

A potential technical hurdle with in-memory data storage is the volatility of RAM. Specifically in the event of a power loss, intentional or otherwise, data stored in volatile RAM is lost.[6] With the introduction of non-volatile random-access memory technology, in-memory databases will be able to run at full speed and maintain data in the event of power failure.[7][8][9]

ACID support

In its simplest form, main memory databases store data on volatile memory devices. These devices lose all stored information when the device loses power or is reset. In this case, IMDBs can be said to lack support for the "durability" portion of the ACID (atomicity, consistency, isolation, durability) properties. Volatile memory-based IMDBs can, and often do, support the other three ACID properties of atomicity, consistency and isolation.

Many IMDBs have added durability via the following mechanisms:

  • Snapshot files, or, checkpoint images, which record the state of the database at a given moment in time. The system typically generates these periodically, or at least when the IMDb does a controlled shut-down. While they give a measure of persistence to the data (in that the database does not lose everything in the case of a system crash) they only offer partial durability (as 'recent" changes will be lost). For full durability, they need supplementing with one of the following:
  • Transaction logging, which records changes to the database in a journal file and facilitates automatic recovery of an in-memory database.
  • Non-Volatile DIMM (NVDIMM), a memory module that has a DRAM interface, often combined with NAND flash for the Non-Volatile data security. The first NVDIMM solutions were designed with supercapacitors instead of batteries for the backup power source. With this storage, IMDb can resume securely from its state upon reboot.
  • Non-volatile random-access memory (NVRAM), usually in the form of static RAM backed up with battery power (battery RAM), or an electrically erasable programmable ROM (EEPROM). With this storage, the re-booting IMDb system can recover the data store from its last consistent state.
  • High availability implementations that rely on database replication, with automatic failover to an identical standby database in the event of primary database failure. To protect against loss of data in the case of a complete system crash, replication of an IMDb is normally used in addition to one or more of the mechanisms listed above.

Some IMDBs allow the database schema to specify different durability requirements for selected areas of the database – thus, faster-changing data that can easily be regenerated or that has no meaning after a system shut-down would not need to be journaled for durability (though it would have to be replicated for high availability), whereas configuration information would be flagged as needing preservation.

Hybrids with on-disk databases

While storing data in-memory confers performance advantages, it is an expensive method of data storage. An approach to realising the benefits of in-memory storage while limiting its costs is to store the most frequently accessed data in-memory and the rest on disk. Since there is no hard distinction between which data should be stored in-memory and which should be stored on disk, some systems dynamically update where data is stored based on the data's usage.[10] This approach is subtly different from caching, in which the most recently accessed data is cached, as opposed to the most frequently accessed data being stored in-memory.

The flexibility of hybrid approaches allow a balance to be struck between:

  • performance (which is enhanced by sorting, storing and retrieving specified data entirely in memory, rather than going to disk)
  • cost, because a less costly hard disk can be substituted for more memory
  • persistence
  • form factor, because RAM chips cannot approach the density of a small hard drive

In the cloud computing industry the terms "data temperature", or "hot data" and "cold data" have emerged to describe how data is stored in this respect.[11] Hot data is used to describe mission-critical data that needs to be accessed frequently while cold data describes data that is needed less often and less urgently, such as data kept for archiving or auditing purposes. Hot data should be stored in ways offering fast retrieval and modification, often accomplished by in-memory storage but not always. Cold data on the other hand can be stored in a more cost-effective way and is accepted that data access will likely be slower compared to hot data. While these descriptions are useful, "hot" and "cold" lack concrete definitions.[11]

Manufacturing efficiency provides another reason for selecting a combined in-memory/on-disk database system. Some device product lines, especially in consumer electronics, include some units with permanent storage, and others that rely on memory for storage (set-top boxes, for example). If such devices require a database system, a manufacturer can adopt a hybrid database system at lower and upper cost, and with less customization of code, rather than using separate in-memory and on-disk databases, respectively, for its disk-less and disk-based products.

The first database engine to support both in-memory and on-disk tables in a single database, WebDNA, was released in 1995.

Storage memory

Another variation involves large amounts of nonvolatile memory in the server, for example, flash memory chips as addressable memory rather than structured as disk arrays. A database in this form of memory combines very fast access speed with persistence over reboots and power losses.[12]

Notable In-memory Databases

  • SAP HANA: This is a column-orientated in-memory database that stores data in its memory instead of keeping it on a disk. It claims to store data in columnar fashion in main memory and supports both online analytical processing (OLAP) and online transactional processing (OLTP) in the same system.[13]
  • Oracle TimesTen: This is an In-Memory Database which is memory-optimized, relational database that claims to deliver microsecond response and extremely high throughput performance.[14]

See also

Notes

  1. ^ "Definition: in-memory database". WhatIs.com. Retrieved 19 January 2013.
  2. ^ Michael Vizard. "The Rise of In-Memory Databases". Slashdot. Archived from the original on 1 February 2013. Retrieved 19 January 2013.
  3. ^ "TeleCommunication Systems Signs up as a Reseller of TimesTen; Mobile Operators and Carriers Gain Real-Time Platform for Location-Based Services". Business Wire. 2002-06-24.
  4. ^ "Falling RAM Prices Drive In-Memory Database Surge". SAP. Archived from the original on 4 November 2013. Retrieved 19 January 2013.
  5. ^ "Rise of In-Memory Databases Impacts Wide Range of Jobs". Dice.com. July 13, 2012.
  6. ^ "In-memory computing: what happens when the power goes out?". 18 February 2015. Retrieved March 10, 2017.
  7. ^ Historically, RAM was not used as a persistent data store and therefore data loss in these instances was not an issue.Whole-system Persistence with Non-volatile Memories http://research.microsoft.com/apps/pubs/default.aspx?id=160853
  8. ^ The Bleak Future of NAND Flash Memory http://research.microsoft.com/apps/pubs/default.aspx?id=162804
  9. ^ AGIGARAM NVDIMM saves data through system failure https://www.embedded.com/electronics-products/electronic-product-reviews/real-time-and-performance/4422291/AGIGARAM-NVDIMM-saves-data-through-system-failure
  10. ^ "Teradata enters the in-memory fray, intelligently ZDNet". ZDNet. Retrieved July 28, 2017.
  11. ^ a b "What's the Diff: Hot and Cold Data Storage". Retrieved July 28, 2017.
  12. ^ "Truly these are the GOLDEN YEARS of Storage."
  13. ^ "What is SAP HANA?". SAP. Retrieved 2024-08-01.
  14. ^ "Oracle TimesTen In-Memory Database".

References

  • Jack Belzer (April 1980). Encyclopedia of Computer Science and Technology - Volume 14: Very Large Data Base Systems to Zero-Memory and Markov Information Source. Marcel Dekker Inc. ISBN 978-0-8247-2214-2.

Read other articles:

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (ديسمبر 2018) بطولة إفريقيا لكرة اليد للسيدات الموسم الحاليبطولة أفريقيا لكرة اليد للسيدات 2020 الجهة المنظمة الاتحاد ال…

Italian priest (born 1942) His EminenceFortunato FrezzaCanon of St. Peter's BasilicaMaster of Ceremonies of the Order of the Holy SepulchreChurchRoman Catholic ChurchAppointed29 September 2013Other post(s)Cardinal-Deacon of Santa Maria in Via Lata (2022-)OrdersOrdination28 June 1966by Luigi RosaConsecration23 July 2022by Mauro GambettiCreated cardinal27 August 2022by Pope FrancisRankCardinal deaconPersonal detailsBornFortunato Frezza (1942-02-06) 6 February 1942 (age 82)Montecalve…

Conflict in United States history Morrisite WarPart of the Mormon WarsDateJune 1862LocationSouth Weber, Utah41°08′48″N 111°58′08″W / 41.1467°N 111.9688°W / 41.1467; -111.9688Result Utah Territory victoryBelligerents Morrisites Utah TerritoryCommanders and leaders Joseph Morris † Stephen S. Harding Robert T. BurtonUnits involved None United States Marshals Service[citation needed] Nauvoo LegionStrength 200 - 500 Morrisite followers 1,000 memb…

Bendera IndonesiaLambang negara Indonesia Lokasi Indonesia Peta Republik Indonesia Garis besar berikut diberikan sebagai ikhtisar dan panduan untuk memahami Indonesia: Indonesia–negara kepulauan berdaulat yang terletak di Asia Tenggara dan memiliki lebih dari 17.000 pulau di Asia Tenggara Maritim.[1] Gambaran umum Nama: Indonesia, Republik Indonesia, Negara Kesatuan Republik Indonesia Orang/penduduk: Bangsa Indonesia Etimologi: Sejarah nama Indonesia Kode ISO negara: ID, IDN, 360 Kode …

Pour les articles homonymes, voir England. Yan England Yan England au Gala Artis 2017 Données clés Nom de naissance Yan England-Girard Naissance 9 décembre 1981 (42 ans)Montréal, Québec, Canada Nationalité Canadien Profession ActeurAnimateur de télévisionScénaristeProducteurRéalisateur Films notables Henry Séries notables Une grenade avec ça?WatatatowL'Appart du 5eTrauma modifier Yan England est un acteur, animateur de télévision, scénariste, producteur et réalisateur québ…

Men's 400 metres T13at the XVI Paralympic GamesVenueTokyo National StadiumDates1–2 September 2021Competitors15 from 12 nationsMedalists Skander Djamil Athmani  Algeria Mohamed Amguoun  Morocco Johannes Nambala  Namibia←2016 Athletics at the2020 Summer ParalympicsTrack events100 mmenwomen200 mmenwomen400 mmenwomen800 mmenwomen1500 mmenwomen5000 mmenwomen4×100 m relaymixedRoad eventsMarathonmenwomenField eventsLong jumpmenwomenHigh jumpmenShot putmenwomenDiscus throwm…

Minister of Public Security of the People's Republic of China中华人民共和国外交部部长National Emblem of the People's Republic of ChinaFlag of the People's Republic of ChinaIncumbentWang Xiaohongsince 24 June 2022Ministry of Public Security of the People's Republic of ChinaStatusProvincial-Ministerial level officialMember ofState CouncilReports toCentral Foreign Affairs CommissionSeatBeijingNominatorPremier(chosen within the Chinese Communist Party)AppointerPresidentwith the conf…

National military of Seychelles This article needs to be updated. Please help update this article to reflect recent events or newly available information. (February 2021) Seychelles People's Defence ForceFlag of the SPDFMottoService before selfFounded1977Service branchesInfantry UnitSeychelles Air ForceSeychelles Coast GuardPresidential Security UnitWebsiteOfficial websiteLeadershipCommander-in-Chief & Minister of DefenceWavel RamkalawanChief of Defence ForcesColonel Michael Rosette[1 …

Pennsylvania Department of EducationAgency overviewJurisdictionState government of PennsylvaniaHeadquarters333 Market Street, Harrisburg, Pennsylvania, U.S.Employees500 (2019)Agency executiveKhalid Mumin, Secretary of EducationWebsitewww.education.pa.gov The Pennsylvania Department of Education is the executive department of the state charged with publicly funded preschool, K-12 and adult educational budgeting, management and guidelines. As the state education agency, its activities are directed…

Maritime special forces unit Naval Diving UnitLogo of the Naval Diving UnitActive12 December 1971 – presentCountry SingaporeBranch Republic of Singapore NavyTypeSpecial forcesRoleSpecial operationsDirect actionExplosive ordnance disposalUnderwater demolitionHostage rescueCounter-terrorismSize6 squadronsPart ofSpecial Operations Task ForceGarrison/HQSembawang CampNickname(s)Warriors of the Deep, Frogmen, Frogmen from the SeaMotto(s)Nothing Stands In Our WayEngagements See list 20…

British rock band Mungo JerryThe band performing in 2013Background informationAlso known asMungo Jerry Blues BandOriginAshford, Middlesex, EnglandGenresRockfolkbluescountryYears active1970–presentLabelsJanusDawnPolydorScratchStage CoachMach 1OrbitIllegalUniversal MusicMercuryMembersRay DorsetPast membersColin EarlPaul KingMike ColeJohn GodfreyJoe RushMichael PohlBob DaisleyByron Contostavlos Paul RaymondBoris WilliamsDave BidwellDick MiddletonEric DillonIan MilnePaul HancoxSev LewkowiczJamei R…

Patriark Ekumenis KonstantinopelKeuskupanOrtodoks Petahana:Bartolomeus IGelarHis All HolinessInformasiPembentukan38/451KatedralGereja St. George, Fener, Istanbul, TurkiSitus webpatriarchate.org Tahta di dalam Patriarkat Konstantinopel. Patriark Ekumenis Konstantinopel (Yunani: Η Αυτού Θειοτάτη Παναγιότης, ο Αρχιεπίσκοπος Κωνσταντινουπόλεως, Νέας Ρώμης και Οικουμενικός Πατριάρχης, harfiah: Yang Termulia,…

Bulgarian footballer (1934–1995) In this Bulgarian name, the patronymic is Nedyalkov and the family name is Diev. Todor Diev Diev in 1963Personal informationFull name Todor Nedyalkov DievDate of birth (1934-01-28)28 January 1934Place of birth Plovdiv, Kingdom of BulgariaDate of death 6 January 1995(1995-01-06) (aged 60)Place of death Plovdiv, BulgariaPosition(s) ForwardWingerSenior career*Years Team Apps (Gls)1950–1952 Spartak Plovdiv 1952–1953 Spartak Sofia 1953–1966 Spartak Pl…

Дикая пшеница Эребунийского заповедника — Пшеница араратская (Triticum araraticum) Армения занимает одно из первых мест в мире по количеству видов растений на единицу площади — свыше 100 видов на 1 км²[1]. Разнообразие растительности республики обусловлено наличием сложно…

Wonderful NightmarePoster teatrikalSutradaraKang Hyo-jinProduserCha Sang-minDitulis olehKim Je-yeongPemeranUhm Jung-hwa Song Seung-heonSinematograferSohn Won-hoPenyuntingShin Min-kyungDistributorMegabox Plus MTanggal rilis 13 Agustus 2015 (2015-08-13) Durasi123 menitNegaraKorea SelatanBahasaKoreaPendapatankotorUS$6,6 juta[1]</ref> Wonderful Nightmare (Hangul: 미쓰 와이프; RR: Misseu Waipeu; lit. Miss Wife) adalah film komedi romantis Korea Selatan ta…

جفن موقع محافظة الدوادمي بالنسبة لمنطقة الرياض تقسيم إداري البلد  السعودية التقسيم الأعلى منطقة الرياض  السكان التعداد السكاني غير معروف نسمة (إحصاء ) تعديل مصدري - تعديل   جفن، هي قرية من فئة (ب) تقع في محافظة الدوادمي، والتابعة لمنطقة الرياض في السعودية. وتبعد جفن عن …

 本表是動態列表,或許永遠不會完結。歡迎您參考可靠來源來查漏補缺。 潛伏於中華民國國軍中的中共間諜列表收錄根據公開資料來源,曾潛伏於中華民國國軍、被中國共產黨聲稱或承認,或者遭中華民國政府調查審判,為中華人民共和國和中國人民解放軍進行間諜行為的人物。以下列表以現今可查知時間為準,正確的間諜活動或洩漏機密時間可能早於或晚於以下所歸類…

العلاقات البلجيكية الليبيرية بلجيكا ليبيريا   بلجيكا   ليبيريا تعديل مصدري - تعديل   العلاقات البلجيكية الليبيرية هي العلاقات الثنائية التي تجمع بين بلجيكا وليبيريا.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه المقارن…

Decision-making framework The Cynefin framework as revised The Cynefin framework (/kəˈnɛvɪn/ kuh-NEV-in)[1] is a conceptual framework used to aid decision-making.[2] Created in 1999 by Dave Snowden when he worked for IBM Global Services, it has been described as a sense-making device.[3][4] Cynefin is a Welsh word for 'habitat'.[5] Cynefin offers five decision-making contexts or domains—clear (known as simple until 2014, then obvious until being rece…

此條目需要补充更多来源。 (2022年5月20日)请协助補充多方面可靠来源以改善这篇条目,无法查证的内容可能會因為异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:陶笛 — 网页、新闻、书籍、学术、图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。 此條目偏重在某些見解、事件或爭議上。 (2024年1月4日)請協助建立更平衡的陳述以符合…

Kembali kehalaman sebelumnya