I'm trying to create a feature on a site with 50,000+ nodes, in which I export a dozen or so nodes... but the Create Feature page is taking 10 minutes to load and then runs out of memory, trying to build a dropdown of 50k items. That UI isn't going to work on sites with many nodes; something else (an auto-complete? manual entry of nid's? anything but a dropdown) has to be used instead for this to work on large sites.

I'm happy to put an hour or so into doing that if you can point me in the right direction.

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chaps2’s picture

I would allow more than an hour or so...

As far as I can see uuid_features is constrained by the features API which was never designed with content in mind. So you'd be looking at substantial changes to that to get an alternative selection UI.

What you could do is limit the node export options to the first 50 - see uuid_node_features_export_options() - and implement a new features component for exporting all nodes of a particular content type. I did a similar thing for terms - #965450: Add component that exports vocabulary with all its terms. However If your 50,000+ nodes are all of the same type then you'll need to start patching features or messing about with form_alter.

Good luck!

adub’s picture

Also see http://drupal.org/node/1031290 on the Features issue queue.

RobLoach’s picture

Version: 6.x-1.0-alpha1 » 7.x-1.x-dev

Hitting the fake subscribe button.

RobLoach’s picture

Maybe have a checkbox somewhere stating which content types will have UUID Features support?

RobLoach’s picture

Priority: Major » Normal
Status: Active » Needs review
FileSize
34.24 KB
2.28 KB

The attached patch adds an option in the UUID configration settings to state which content types should have Features support.

ezra-g’s picture

> I'm trying to create a feature on a site with 50,000+ nodes, in which I export a dozen or so nodes.

Rob's patch sounds good, and another option to consider is to only generate UUIDs for the 12 nodes you wish to export, rather than all 50,000 on the site,

markdorison’s picture

@ezra-g That would work in some situations but if you are using UUID for other reasons on your site, that may not be an option.

I am working on a site with hundreds of thousands of nodes and needless to say, am experiencing the same issue. Attached is a D6 back-port of Rob's patch.

jgraham’s picture

This issue looks like #1719414: UUID Features triggers WSOD when creating/recreating features is a duplicate I have a patch over there that is similar to this, but also adds configuration to filter by taxonomy vocabulary.