However, with the UNION query you subsequently lose all index usage. A real database regularly comes with a lot of data, and you need some resources to achieve satisfactory performance.
What does that mean?
If you have or can compile the full path in a file system in the database, you can open...