60kb json data storing in next app or database
Answered
Asiatic Lion posted this in #help-forum
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
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
@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
Asiatic LionOP
Yes it's static data. Won't it make my app slower ?
@Asiatic Lion Yes it's static data. Won't it make my app slower ?
Spectacled bear
No
Asiatic LionOP
@Spectacled bear Thank you!