It really depends on the volume. For example, if you have several applications accessing data, then the database is better because you do not have to worry about locking files, etc. In addition, you should use the database when you need to do things like combine other data, sort, etc. if you do not want to use Quicksort.
source
share