© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
8 replies
Dong

General Database Structure Question

I would like some advice on how to store my data. I want to store a large number of links, with each row containing a link. For example, I have 1000 rows and 1000 users. When a user wants to fetch all the links associated with them, they have to read through 1000 rows. Instead of saving each link in a separate row, I am considering using JSON to store the links. In this case, the table would have columns for the user ID and a JSON object containing 1000 links. This way, each user would only need to read one row at a time. I would like to know if this is a good approach or if there are other suggestions, such as using a cache. IMO the cache would be become the same as save 1000 links in one row because the key and value type.
Thank you for any advice you can provide.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Database design question
SupabaseSSupabase / help-and-questions
3mo ago
Structure-slash-design question re. onboarding
SupabaseSSupabase / help-and-questions
4y ago
How do your database migration/structure workflows look like?
SupabaseSSupabase / help-and-questions
2mo ago
Project Structure Review Request - New to Database and Auth
SupabaseSSupabase / help-and-questions
7mo ago