mercredi 21 février 2018

Trying to implement some feature to show similar stores, so I need some efficient logic

So, I'm trying to put some feature on a website that I'm working on. There are 100 stores in the website and each store has keywords to represent the style of each store. Based on the number of matched keywords, I wanna represent the order of similar stores, which means the higher matched number, the higher it is positioned on the order.

To prevent the webpage shows up slowly, I'm gonna sort the order and store it in DB so that I don't need to sort everytime I go to the page. Should I just store the order of 99 stores? or is there any effective way that you wanna recommend me?




Aucun commentaire:

Enregistrer un commentaire