dimanche 4 octobre 2015

Laravel 5.1. Pretty URLs and dynamic routes. Data stored in Elasticsearch

I am writing online store. Goods stored in Elasticsearch.

$goods = [
    'name'=>'some very strange name ()*(u9Hfijdhlfksjn89;l',
    'attribute X' => 'value',
     // ...
]

I would like to have pretty URL. Like that:

http://ift.tt/1Vy7aW6

Not like that:

http://ift.tt/1VwKIlJ

Let's imagine that I have 100000 goods in Elasticsearch.

Question: What is the best way to create so many routes without performance loss?

And

What is the best approach?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire