Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 May 2010 at 05:01 UTC
Updated:
9 Jan 2014 at 05:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cafuego commentedAttached patch adds an index in node.install and implements node_update_7011() to add the index on existing installations. See #778050: Add support for database hints and make PagerDefault properly pluggeable for a link to query speed tests.
Comment #2
cafuego commentedComment #3
brianV commentedPatch attached for D8, and a reroll for D7.
Schema change only in D8, schema change and hook_update_n() in D7.
Comment #4
larowlanWe also need an update hook to add the index for existing installs.
Comment #5
brianV commentedThere are two patches in #3. One for D8 which is just the schema change, and one for D7 that has schema change and update hook.
No update hook is needed in D8 since HEAD->HEAD upgrades are currently not supported.
Comment #6
yesct commented#3: 813634-add-node-language-index.patch queued for re-testing.
Comment #8
claudinec commentedRerolled new patch for D8 schema change.
Comment #9
claudinec commentedComment #11
jayelless commentedThe previous patch used the column name "language" instead of "langcode". Patch has been rerolled to include the correct column name.
Comment #12
cafuego commentedLooks good to me.
Comment #13
yesct commentedmaybe someone from d8mi can chime in here to rtbc it.
I dont see anything wrong, but I'm not knowledgable about performance and such.
Comment #14
yesct commentedtag didn't stick.
Comment #15
decipheredIf at all possible, can we get an interdiff for this to make the review process a little easier?
Comment #16
jayelless commentedSorry for the delay, but I have now rerolled the patch and created an interdiff as requested.
This patch is so simple that the interdiff is actually larger than the patch :)
Comment #17
jair commentedNeeds reroll
Comment #18
nitesh sethia commentedRerolling the patch #16
Comment #20
wesleydv commentedInvestigated this and the patch is no longer needed because current D8 head already has:
So I believe this patch is no longer needed.
Comment #21
sutharsan commentedI agree, 'language' already has an index.. A bit more verbose:
In node.install you find:
$schema['node_field_revision'] = array(
'description' => 'Stores information about each saved version of a {node}.',
'fields' => array(
...
'indexes' => array(
'nid' => array('nid'),
'uid' => array('uid'),
'revision_uid' => array('revision_uid'),
'vid' => array('vid'),
'node_default_langcode' => array('default_langcode'),
'node_langcode' => array('langcode'),
),
...
'primary key' => array('nid', 'vid', 'langcode'),
);
Comment #22
cafuego commentedRe-opening for 7.x-dev because it's still not fixed in D7, which is where I wanted it fixed to begin with :-P Re-attached an updated for-git version of the original patch from comment 1.
Comment #23
wesleydv commentedLooks ok to me
Comment #24
Anonymous (not verified) commentedthis is for David to look at now.
Comment #25
David_Rothstein commentedCommitted to 7.x - thanks! http://drupalcode.org/project/drupal.git/commit/cc20016
Comment #26
David_Rothstein commented