Better Engineers

Better Engineers

Data Structures : That Power Your Database Part - 1

Better Engineering's avatar
Better Engineering
Aug 11, 2024
∙ Paid

Consider the world’s simplest database, implemented as two functions:

setData to save data at the end of the document and getData to get Data from the document.

function setData(key: string,data : String){
// Save the data in a Document
}
function getData(key: string) : String {
// get the data from the Document
return data ;
}
Performance:

When we talk a…

Keep reading with a 7-day free trial

Subscribe to Better Engineers to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Dev Dhar
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture