Data Structures : That Power Your Database Part - 1
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.

