Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7587931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:47:50+00:00 2026-05-30T19:47:50+00:00

is it better to store one big JSON object in local storage and append

  • 0

is it better to store one big JSON object in local storage and append into it other data or use multiple small objects with datas in it? I would like to use it as history storage for any some application (so I think 5MB is enough).
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:47:51+00:00Added an answer on May 30, 2026 at 7:47 pm

    It really depends on the way you want to access your data:
    If you want to access small parts of your data once in a while, you should put it into small objects. I did a couple of performance test a while ago and found the lookup of on objects in a localStorage filled with a lot of objects quit fast. If you use small objects, you might use less memory because you don’t have to read and parse a big json object.
    On the other side, keep in mind that reading localStorage is a blocking function. So if you need to iterate over the object, i might block your whole browser. In that case, it might be better to save the data in a huge chunck and read it at once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Or better said: When to use array as a field data type in a
What is the better way to store similar structures in MongoDB? Choose one collections
Generally, I had thought it was always better to store images in the filesystem
If I had a million images, would it be better to store them in
Suppose that you have to set 12 cookies, would it be better to store
Is it better to use a stored procedure or doing it the old way
Right now I'm creating a web-app which requires that multiple sets of data (including
Im searching for a very high performant possibility to insert data into a MS
What's better? I want to share a script where some data (4 ints (between
Here is an example use case: You need to store last N (let's say

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.