in reply to Time reading file size

Do you think it is faster to read the file size or make the database call?

That depends entirely on your database and your filesystem and is therefore impossible to tell from this distance. But why guess when you can Benchmark?