Telash
Telash14mo ago

telash – 21-49 Sep 4

Say my db is one big json, with 1m objects. What is better for efficiency - keeping it an array of objects, or using a Map to easily access objects with a long human readable string as an index, such as a url? If Map isnt better, why? The string gets converted to many numbers behind the scenes, and not directly to a number that represent the place of that object in the array?
1 Reply
reactibot
reactibot14mo ago
This thread hasn’t had any activity in 36 hours, so it’s now locked. Threads are closed automatically after 36 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1148374309581107200 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26