Written by Prashant Basnet
👋 Welcome to my Signature, a space between logic and curiosity.
I’m a Software Development Engineer who loves turning ideas into systems that work beautifully.
This space captures the process: the bugs, breakthroughs, and “aha” moments that keep me building.
This thread revolves around evaluating the technicality of current data storgae methods used in Unisala's platform, specially how drafts are managed. What kind of data structures are used like key value pair vs trees & graph. We will also evaluate & explore some client side storage like local storage vs indexDb. This thread
Context:
As the user base is growing in terms of user base and feature complexity, the current methods of storing drafts will bottleneck. We are exploring a migration to indexDb and possibly integrating more complex data structures like trees and graphs. to efficiently manage drafts that have different versions and revisions.
Pros:
Cons:
Pros:
Cons:
Key-Value Pair Object Store:
Pros:
Cons:
Given that we are considering client side solutions, we might want to maintain the applications performance as it scales, indexDB offers several advantage.
Pros:
Cons:
Tree or Graph Structures:
If your drafts have more complex relationships or hierarchical structures (such as revision, versions) using tree or graph might be beneficial:
Pros:
Cons:
Conclusion:
For simplicity & moderate scale, since our application does not expect extremely complex data relationships or massive scale, sticking with key value pair approach using indexedDB might be the best balance between complexity & performance. It offers advantage of using localStorage in terms of capacity and functionality without the overhead of managing complex data structures like tree or graphs.
This technical discussion is crucial for strategically planning the future architecture of Unisala's platform. It affects everything from user experience i.e speed and responsiveness to the feasibility of new features like collaborative editing. Decisions made here will shape how effectively the platform can serve its users as it scales.
#Unisala #ClientSideStorage #IndexedDB #LocalStorage #DataStructures #WebDevelopment #DatabaseManagement #PerformanceOptimization #TechDiscussion #StorageSolutions