How to optimize when searching multiple objects for a value?


Hope everything is good.

Let's say I have this object x 200 (with different values, of course)

[0] => stdClass Object
        [Manufacturer] => Nike
        [Name] => Air Max Talldress
        [Options] => stdClass Object
                [Black] => Array
                        [0] => Medium
                        [1] => Large

                [White] => Array
                        [0] => Small



I only want all objects where "Manufacturer = Nike". How should I do to ONLY compare with the "Manufacturer" property, without wasting time on properties that are not relevant in this case. Optimize the process.

I'm not interested in dbms, I want to see what's possible here.

// Neo


And what have YOU done so far?


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.