These are chat archives for mirumee/saleor
python manage.py makemigrationsand execute
python manage.py migrate
prefetchin django ORM) and make sure all the constraints and indexing are optimized for your case and statements.
A question about SEO that bothers me a little: SEO wise, we should redirect the moved link to the new link to avoid dead links.
That's the case for categories, products, etc. in Saleor as we get the object from the passed PK in the url. But not the case of pages as we don't pass any PK.
So the question is: should we add a PK to the page url to prevent dead links (and in the meantime, improve SQL timings of course since we are getting by PK)? (
Or would it be an unwanted pattern?
There are other solutions of course at the model side. I would like to have some feedback on that one. (could also be
/page/<pk>/<slug>/ which could look better, and is a correct SEO pattern as well)