Skip to content

[Resolved] Extremely high memory consumption on tally_term_counts

Home Forums Press Permit API Extremely high memory consumption on tally_term_counts

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by 3 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20661 Reply

    Hi,

    I was rebuilding by FacetWP index that looks up a terms. While doing this I received the following Fatal error (multiple times)

    [24-Sep-2015 11:25:22 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /wp-content/plugins/press-permit-core/terms-query-lib_pp.php on line 48

    The tally_term_counts is very unefficient. For now I have just skipped it using return in the beginning. When I did this the performance bumbed to 10 times faster.

    The machine I ran the code has 6 CPUs 8GB of RAM, SSD and no other load. PHP Memory limit is 512 MB.

    A-P

    #20674 Reply

    [ login required ]

    #20716 Reply

    [ login required ]

    #20718 Reply

    [ login required ]

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.