No, MySQL does not support partial indexes of this type.
If people refer to "partial indexes" in MySQL, they refer to textual "prefix indexes" where only a certain number of leading characters are indexed, not an integer value. For example, an index can only be made by indexing the first 5 characters.
If you are looking for performance improvements because it does not use win and prize_id (although I see that you currently do not have win indexing), you can create a composite index above (win, prize_id) (in that order) so that first filter the values ββon win , and then look at the remaining prize_id value.
If you are looking for a partial index just to reduce the size / memory usage of this index, this unfortunately has the opposite effect.
source share