Last active
November 16, 2023 17:27
-
-
Save Lathanao/62e0a67685c7d3c9b0804479f477a55a to your computer and use it in GitHub Desktop.
Clean Prestashop Database Queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM ps_search_index | |
WHERE id_product not in (select id_product from ps_product); | |
DELETE FROM ps_search_word | |
WHERE id_word not in (select id_word from ps_search_index); | |
OPTIMIZE TABLE ps_search_index; | |
OPTIMIZE TABLE ps_search_word; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment