Next.js Discord

Discord Forum

60kb json data storing in next app or database

Answered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Hey, Is it fine to store a 60kb json data in my next js app or should I pull it from a database? I will be using server component for the data use. So will the file be shipped to client side or it will be stored in server ?
Answered by Spectacled bear
If its static data and won't going to change, you could just save it as a file inside your next application. No need to fetch it from DB unless it is changing
View full answer

6 Replies

Spectacled bear
If its static data and won't going to change, you could just save it as a file inside your next application. No need to fetch it from DB unless it is changing
Answer
Asiatic LionOP
@Spectacled bear Thank you!