Leave a Reply

1 comment

  1. You have a structural problem with your data. Serialized data in the database is terrible if you need to search over pieces of that serialized data.

    Iterating over the data is about the only solution you have given the data structure you are dealing with.

    However, the correct solution in my opinion is to alter your data structure so that you are saving granular pieces of data in the database. In other words, use a lot of different keys for the values that you need to search over.