R
R
Roman Nadtochy2015-04-29 18:39:48
MongoDB
Roman Nadtochy, 2015-04-29 18:39:48

Many files in one folder on the server. How to organize quick access?

There are several folders on the server in ramfs, each of which contains relatively many files (about 60000). Files of different sizes, the total volume is 30Mb. Interested in how to organize quick access to them by file name. Do I need to fence gardens, or will the file system handle itself? Will there be an advantage if the files are driven into a database like Redis?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
@
@mgyk, 2015-04-29
@McAron

Radishes are much more maintainable than ramfs. You can do normal data replication and there is less fuss when starting/stopping the server. I think that reading from radish will be faster especially if you need to read several files at once. This can be done in one transaction (MULTI request to radish). Look at redis.io/topics/benchmarks , you can run it on the same hardware and see what speed the radish will give

P
Puma Thailand, 2015-04-29
@opium

60 thousand per folder is quite a bit so it will fly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question