Memory size exhausted
-
Hello, we have a problem. We have over 15k posts. The table inverted_index has over 1.3 GB. If someone searches for “after us” then we get an error.
Got error ‘PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16777224 bytes) in /home/xxx/public_html/wp-includes/class-wpdb.php on line 3130’
If you search for After use, it’s fine. Searching just “after” does not work either.
Memory limit is 512MB.
In your plugin minimum word length to index is 2. If we enable Throttle searches to 500 per term then it works. BUT it doesn’t find all the relevant and correct results. I don’t know, maybe to limit it to 1000 per term? Or to make more requests per 500 but to go through the whole index??
For example when throttling and searching for “hogwarts legacy review” then we get the result only for PS5 review but not Xbox review. But using just “hogwarts legacy” finds it. The titles of the posts are: Hogwarts Legacy Review: Magic Or Muggle? (Xbox Series X) and Hogwarts Legacy Review: A Spellbinding Experience (PS5).
Thanks,
Karel
- The topic ‘Memory size exhausted’ is closed to new replies.