There are 5 tables (so split because of the size. Tables have units ~ 15k, params ~ 12k, units_params ~ 60k records):
units (id,name) colors (id,name) units_colors (unit_id,color_id) params (id,name) units_params (unit_id,param_id) How best to search:
в названии юнита есть фраза: 'car' есть цвет: 'black' и 'green' нет цвета: 'red' eсть параметр: 'wood' At the moment, the search is performed first by name. A list of matching id is thrown into the array. After the second search is performed by color in the range of id from the array. etc. Is it possible to perform this operation with one MySQL query?
NOT EXISTS" - Mike