I have 1000 json files in my server and users request their file with something like this mysite.com/request.php?file=id
and i should show them id.json
.But before i show them i should check if id.json
need to be updated or not .
My json files are something like this:
{
"response": {
......,
"lastupdate":14323342
}
}
In last update i store the last update time in seconds and if the current time is bigger than 1 hour i should update my file from somewhere else .
Now my question : Is it good to save lastupdate
in Mysql or in each json file ?
If i use mysql i need 1000 rows and each row should have 2 columns ,first columns are id
and second columns are lastupdate
.And my users are more than 10,000 and each day and server hardwares is important for me.