Just recently, the project needed a search function for files by mask glob(). But that is in thought whether to use it, and how much it loads the server.
The task is as follows:
There is an object, let's say a car, he's got 20-30 photos that are stored in 5 folders with different sizes. Sootvetsvenno in the presence of base 20-30000 object pictures can be approximately 150-200, 000 files. A wildcard search will be performed something like this: "/path/photos/[obj_id]_*.jpg" now, something really confuses me to use this feature... And I can't dig up information on loads.