-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mimi #140
Conversation
I've added you to review this approach. So this issue was caused by someone importing ALL publications from EVERYONE on the CAP API. Yep, that was Zach. Anyhow, this caused the capx_profiles table to be very large (~240000). That amount of data is too large to pull all at once but a single request is more efficient when the amount of data is lower. I have introduced a threshold variable to swap out strategies. Please have a review. |
|
I'm trying to reproduce the
|
I can reproduce the Clearing the cache from the GUI gives: |
Thanks Guys! |
@jbickar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great; nice work.
@@ -330,7 +330,7 @@ function capx_filters_parse_date($string) { | |||
function capx_filters_entity_presave($entity, $type) { | |||
|
|||
// We only want to act on importer cfe entities. | |||
if ($type !== 'capx_cfe' && $entity->type !== 'importer') { | |||
if ($type !== 'capx_cfe' || $entity->type !== 'importer') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a fix to bad logic, unrelated to the memory issue, yeah?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Was acting on too many types.
->execute() | ||
->fetchField(); | ||
|
||
if ($count > variable_get('stanford_capx_entity_load_limit', 10000)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun times:
stanford_capx_entity_load_limit = 1000
, everything is wunderbar
stanford_capx_entity_load_limit = 100000
, things start to get wonky
stanford_capx_entity_load_limit = 1000000
, WSOD
That's pretty neat.
Thanks for reviewing. |
READY FOR REVIEW
Summary
Needed By (Date)
Urgency
Steps to Test
Affected Projects or Products
Associated Issues and/or People
See Also