I have to find an element in a table that has many partitions, I do not know in which one of them will it be found or even if the element exists in any of them, so I have to query many partitions.
As there are many partitions, I usually specify which one I want to query to make the query faster, but in this case I do not now which one will be the one that contains the element I'm looking for.
Is it better to execute different queries, one for each partition, or execute a query that includes every possible partition?
I'm using MySQL.