Here be dragons.

CommentFileSizeAuthor
#178 test.patch589 bytesamateescu
#177 field-storage-definition-test.patch28.77 KBamateescu
#174 test.patch5.14 KBamateescu
#172 wip.patch89.02 KBamateescu
#170 wip3-other-stuff.patch3.44 KBamateescu
#168 wip.patch81.05 KBamateescu
#166 wip.patch82.33 KBamateescu
#165 wip2-without-defaults.patch66.09 KBamateescu
#165 wip2.patch66.18 KBamateescu
#164 wip2-without-defaults.patch63.43 KBamateescu
#164 wip2.patch63.52 KBamateescu
#162 wip2.patch57.79 KBamateescu
#160 wip2.patch36.77 KBamateescu
#159 wip3.patch3.21 KBamateescu
#157 wip3.patch3.17 KBamateescu
#156 wip2.patch22.63 KBamateescu
#155 wip2.patch22.63 KBamateescu
#153 wip.patch35.54 KBamateescu
#151 wip.patch38.64 KBamateescu
#149 wip.patch31.05 KBamateescu
#147 make-the-sql-storage-use-the-last-installed-definitions-third-try.patch27.41 KBamateescu
#145 make-the-sql-storage-use-the-last-installed-definitions-second-try.patch1.14 KBamateescu
#144 make-the-sql-storage-use-the-last-installed-definitions.patch1012 bytesamateescu
#142 er-autocreate-bundle.patch1.41 KBamateescu
#139 revision tree.png50.42 KBamateescu
#134 test-only-again.patch813 bytesamateescu
#133 test-only.patch712 bytesamateescu
#130 test.patch63.94 KBamateescu
#128 test.patch60.41 KBamateescu
#126 test.patch46.58 KBamateescu
#124 test.patch50.11 KBamateescu
#123 test.patch47.43 KBamateescu
#121 test.patch16.47 KBamateescu
#118 interdiff6.txt7.39 KBamateescu
#118 test-am.patch32.92 KBamateescu
#116 interdiff5.txt1.96 KBamateescu
#116 interdiff4.txt1.16 KBamateescu
#116 test-am.patch27.78 KBamateescu
#114 interdiff3.txt6.72 KBamateescu
#114 test-am2.patch26.91 KBamateescu
#112 interdiff2.txt1.43 KBamateescu
#112 test-am.patch20.66 KBamateescu
#109 interdiff.txt6.44 KBamateescu
#109 test.patch19.23 KBamateescu
#107 test.patch12.62 KBamateescu
#105 test.patch12.7 KBamateescu
#102 test.patch11.07 KBamateescu
#101 test.patch10.59 KBamateescu
#99 interdiff-to-2248983-167.txt798 byteshchonov
#99 2248983-167-with-unset.patch236.75 KBhchonov
#97 interdiff-to-2248983-167.txt723 byteshchonov
#96 2248983-167-without-view-presave.patch236.69 KBhchonov
#94 test_post_update_resave_views.patch646 byteshchonov
#92 test-with-view-presave.patch30.91 KBamateescu
#92 test-with-update-function.patch30.95 KBamateescu
#91 interdiff-to-2248983-146.txt3.72 KBamateescu
#91 test-without-update-function-and-without-views-presave.patch30.95 KBamateescu
#88 test-with-only-config-added-and-the-new-entity-type.patch232.58 KBamateescu
#88 test-with-only-config-added.patch229.73 KBamateescu
#86 test.patch238.15 KBamateescu
#83 test.patch238.28 KBamateescu
#82 test.patch237.95 KBamateescu
#81 test.patch817 bytesamateescu
#78 test.patch9.38 KBamateescu
#76 test.patch13.11 KBamateescu
#72 test.patch18.38 KBamateescu
#72 test.patch18.38 KBamateescu
#72 test.patch18.38 KBamateescu
#72 test.patch18.38 KBamateescu
#72 test.patch18.38 KBamateescu
#71 revert-usage-of-upsert.patch655.56 KBamateescu
#69 test.patch1.76 KBamateescu
#68 test.patch1.92 KBamateescu
#65 test_field_storage_config_form.patch32.58 KBamateescu
#63 test.patch17.77 KBamateescu
#61 test.patch17.91 KBamateescu
#59 remove_user_autocomplete.patch37.38 KBamateescu
#57 remove_user_autocomplete.patch25.86 KBamateescu
#55 rm_er.patch81.6 KBamateescu
#53 test.patch820 bytesamateescu
#51 1963340-162.patch66.37 KBamateescu
#49 tax-item.patch119.26 KBamateescu
#47 tax-item.patch99.1 KBamateescu
#45 tax-item.patch118.33 KBamateescu
#43 shortcut-test.patch28.04 KBamateescu
#41 shortcut-test.patch27.5 KBamateescu
#39 shortcut-test.patch28.19 KBamateescu
#35 moar_test.patch3.2 KBamateescu
#34 test.patch2.17 KBamateescu
#32 schema_progress.patch30.05 KBamateescu
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#30 revert_only_of_fc04601.patch86.8 KBxjm
#28 revert_only_of_fc04601.patch86.8 KBamateescu
#28 revert_only_of_fc04601.patch86.8 KBamateescu
#28 revert_only_of_fc04601.patch86.8 KBamateescu
#26 14336d94.patch382.64 KBxjm
#26 14336d94.patch382.64 KBxjm
#26 14336d94.patch382.64 KBxjm
#26 14336d94.patch382.64 KBxjm
#25 14336d9.patch382.64 KBamateescu
#25 14336d9.patch382.64 KBamateescu
#25 14336d9.patch382.64 KBamateescu
#20 fc04601.patch296.61 KBamateescu
#20 fc04601.patch296.61 KBamateescu
#20 fc04601.patch296.61 KBamateescu
#20 fc04601.patch296.61 KBamateescu
#20 fc04601.patch296.61 KBamateescu
#19 13ebcd2.patch379.91 KBamateescu
#19 13ebcd2.patch379.91 KBamateescu
#19 13ebcd2.patch379.91 KBamateescu
#19 13ebcd2.patch379.91 KBamateescu
#19 13ebcd2.patch379.91 KBamateescu
#12 6cd1a3_revert.patch385.49 KBxjm
#12 6cd1a3_revert.patch385.49 KBxjm
#12 6cd1a3_revert.patch385.49 KBxjm
#12 6cd1a3_revert.patch385.49 KBxjm
#12 6cd1a3_revert.patch385.49 KBxjm
#10 post_render_cache_revert.patch39.08 KBamateescu
#10 post_render_cache_revert.patch39.08 KBamateescu
#10 post_render_cache_revert.patch39.08 KBamateescu
#10 post_render_cache_revert.patch39.08 KBamateescu
#10 post_render_cache_revert.patch39.08 KBamateescu
#8 state-cache.patch43.61 KBamateescu
#7 shortcut_test.patch89.05 KBamateescu
#5 shortcut_test.patch89.23 KBamateescu
#3 shortcut_test.patch89.13 KBamateescu
#1 shortcut_test.patch89.04 KBamateescu

Comments

amateescu’s picture

Status: Active » Needs review
StatusFileSize
new89.04 KB
amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new89.13 KB
amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new89.23 KB
amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new89.05 KB
amateescu’s picture

StatusFileSize
new43.61 KB
amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new39.08 KB
new39.08 KB
new39.08 KB
new39.08 KB
new39.08 KB

Trying to unbreak head.

xjm’s picture

StatusFileSize
new385.49 KB
new385.49 KB
new385.49 KB
new385.49 KB
new385.49 KB

Using git bisect for realz.

[tesla:drupal | Thu 17:02:08] $ git bisect good cc7cae5
[tesla:drupal | Thu 17:02:16] $ git bisect bad e0a0b7
Bisecting: 6 revisions left to test after this (roughly 3 steps)
[6cd1a3986615279c1262adb429a4ed3f2f7c7154] Issue #2137599 by segi, Sweetchuck: Incorrect type and default value for the direction of the default language.

Edit: Oops, guess the filenames are ambiguous. It's not a revert of that hash; it's a revert TO that hash. Of everything.

xjm’s picture

Soooo https://qa.drupal.org/pifr/test/675243 from #12 doesn't have any of the memory fatals, but has other fails. Interesting...

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new379.91 KB
new379.91 KB
new379.91 KB
new379.91 KB
new379.91 KB

I'm going to consider that revision as good because it didn't have any memory fatals.

$ git bisect good 6cd1a39
Bisecting: 3 revisions left to test after this (roughly 2 steps)
[13ebcd222fb876238eace73c27a95241d81cc79c] Issue #2125633 by tim.plunkett: PHPUnit tests cannot be rerun from Simpletest UI.
amateescu’s picture

StatusFileSize
new296.61 KB
new296.61 KB
new296.61 KB
new296.61 KB
new296.61 KB

This one is obviously good, moving on.

$ git bisect good 13ebcd2
Bisecting: 1 revision left to test after this (roughly 1 step)
[fc04601c357609f6cae7cb3ae6c71610d44647e5] Issue #1954892 by dawehner, tim.plunkett, David_Rothstein, effulgentsia: Replace 'theme
callback' and hook_custom_theme() with a clean theme negotiation system.
amateescu’s picture

StatusFileSize
new382.64 KB
new382.64 KB
new382.64 KB
$ git bisect bad fc04601
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[14336d94b8da95f2c2f26edb7ffb5c12d58a1212] Issue #2138239 by damiankloip: Use GlobIterator instead of glob.

I know this one is good because it was reverted, but I'm going to put up a few patches anyway.

xjm’s picture

StatusFileSize
new382.64 KB
new382.64 KB
new382.64 KB
new382.64 KB

Seems to be like 75% plus fail rate on the bad.

git bisect bad fc04601c
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[14336d94b8da95f2c2f26edb7ffb5c12d58a1212] Issue #2138239 by damiankloip: Use GlobIterator instead of glob.
xjm’s picture

Ohai, crosspost.

amateescu’s picture

I think we have a winner. Let's try a revert of only one patch: fc04601c357609f6cae7cb3ae6c71610d44647e5

xjm’s picture

The last submitted patch, 30: revert_only_of_fc04601.patch, failed testing.

amateescu’s picture

StatusFileSize
new30.05 KB

Status: Needs review » Needs work

The last submitted patch, 32: schema_progress.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new2.17 KB
amateescu’s picture

StatusFileSize
new3.2 KB

Status: Needs review » Needs work

The last submitted patch, 35: moar_test.patch, failed testing.

The last submitted patch, 35: moar_test.patch, failed testing.

The last submitted patch, 34: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new28.19 KB

Status: Needs review » Needs work

The last submitted patch, 39: shortcut-test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new27.5 KB

Status: Needs review » Needs work

The last submitted patch, 41: shortcut-test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new28.04 KB

Status: Needs review » Needs work

The last submitted patch, 43: shortcut-test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new118.33 KB

Status: Needs review » Needs work

The last submitted patch, 45: tax-item.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new99.1 KB

Status: Needs review » Needs work

The last submitted patch, 47: tax-item.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new119.26 KB

Status: Needs review » Needs work

The last submitted patch, 49: tax-item.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new66.37 KB

Status: Needs review » Needs work

The last submitted patch, 51: 1963340-162.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new820 bytes

Status: Needs review » Needs work

The last submitted patch, 53: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new81.6 KB

Status: Needs review » Needs work

The last submitted patch, 55: rm_er.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new25.86 KB

Status: Needs review » Needs work

The last submitted patch, 57: remove_user_autocomplete.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new37.38 KB

Status: Needs review » Needs work

The last submitted patch, 59: remove_user_autocomplete.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new17.91 KB

Status: Needs review » Needs work

The last submitted patch, 61: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new17.77 KB

Status: Needs review » Needs work

The last submitted patch, 63: test.patch, failed testing.

amateescu’s picture

StatusFileSize
new32.58 KB
amateescu’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 65: test_field_storage_config_form.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new1.92 KB
amateescu’s picture

StatusFileSize
new1.76 KB

Status: Needs review » Needs work

The last submitted patch, 69: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new655.56 KB
amateescu’s picture

StatusFileSize
new18.38 KB
new18.38 KB
new18.38 KB
new18.38 KB
new18.38 KB

Trying a patch that reverts D8 to 9594553dee541a7aa1a2363420e3fcb1e586c6ca .

The last submitted patch, 72: test.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 72: test.patch, failed testing.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new13.11 KB

Status: Needs review » Needs work

The last submitted patch, 76: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new9.38 KB

Status: Needs review » Needs work

The last submitted patch, 78: test.patch, failed testing.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new817 bytes
amateescu’s picture

Version: 8.2.x-dev » 8.3.x-dev
StatusFileSize
new237.95 KB
amateescu’s picture

StatusFileSize
new238.28 KB

The last submitted patch, 82: test.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 83: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new238.15 KB

Status: Needs review » Needs work

The last submitted patch, 86: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new229.73 KB
new232.58 KB

The last submitted patch, 88: test-with-only-config-added.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 88: test-with-only-config-added-and-the-new-entity-type.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new30.95 KB
new3.72 KB
amateescu’s picture

StatusFileSize
new30.95 KB
new30.91 KB

Status: Needs review » Needs work

The last submitted patch, 92: test-with-view-presave.patch, failed testing.

hchonov’s picture

Status: Needs work » Needs review
StatusFileSize
new646 bytes

Status: Needs review » Needs work

The last submitted patch, 94: test_post_update_resave_views.patch, failed testing.

hchonov’s picture

Status: Needs work » Needs review
StatusFileSize
new236.69 KB
hchonov’s picture

StatusFileSize
new723 bytes

Oh and the interdiff to 2248983-167.

Status: Needs review » Needs work

The last submitted patch, 96: 2248983-167-without-view-presave.patch, failed testing.

hchonov’s picture

Status: Needs work » Needs review
StatusFileSize
new236.75 KB
new798 bytes

Status: Needs review » Needs work

The last submitted patch, 99: 2248983-167-with-unset.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new10.59 KB
amateescu’s picture

StatusFileSize
new11.07 KB

The last submitted patch, 101: test.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 102: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new12.7 KB

Status: Needs review » Needs work

The last submitted patch, 105: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new12.62 KB

Status: Needs review » Needs work

The last submitted patch, 107: test.patch, failed testing.

amateescu’s picture

StatusFileSize
new19.23 KB
new6.44 KB
amateescu’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 109: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new20.66 KB
new1.43 KB

Status: Needs review » Needs work

The last submitted patch, 112: test-am.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new26.91 KB
new6.72 KB

Status: Needs review » Needs work

The last submitted patch, 114: test-am2.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new27.78 KB
new1.16 KB
new1.96 KB

Status: Needs review » Needs work

The last submitted patch, 116: test-am.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new32.92 KB
new7.39 KB

Status: Needs review » Needs work

The last submitted patch, 118: test-am.patch, failed testing.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new16.47 KB

Status: Needs review » Needs work

The last submitted patch, 121: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new47.43 KB
amateescu’s picture

StatusFileSize
new50.11 KB

Status: Needs review » Needs work

The last submitted patch, 124: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new46.58 KB

Status: Needs review » Needs work

The last submitted patch, 126: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new60.41 KB

Status: Needs review » Needs work

The last submitted patch, 128: test.patch, failed testing.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new63.94 KB

Status: Needs review » Needs work

The last submitted patch, 130: test.patch, failed testing.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new712 bytes
amateescu’s picture

StatusFileSize
new813 bytes

The last submitted patch, 133: test-only.patch, failed testing. View results

amateescu’s picture

Standard query generated by \Drupal\Core\Entity\Sql\SqlContentEntityStorage::buildQuery:

SELECT revision.vid AS vid, revision.langcode AS langcode, revision.revision_uid AS revision_uid, revision.revision_timestamp AS revision_timestamp, revision.revision_log AS revision_log, base.nid AS nid, base.type AS type, base.uuid AS uuid, (CASE base.vid WHEN revision.vid THEN 1 ELSE 0 END) AS isDefaultRevision
FROM 
node base
INNER JOIN node_revision revision ON revision.vid = base.vid

Modified query for determining whether the node is also at the latest revision:

SELECT MAX(revision_2.vid) AS latest_revision, revision.vid AS vid, revision.langcode AS langcode, revision.revision_uid AS revision_uid, revision.revision_timestamp AS revision_timestamp, revision.revision_log AS revision_log, base.nid AS nid, base.type AS type, base.uuid AS uuid, (CASE base.vid WHEN revision.vid THEN 1 ELSE 0 END) AS isDefaultRevision, (CASE MAX(revision_2.vid) WHEN revision.vid THEN 1 ELSE 0 END) AS isLatestRevision
FROM 
node base
INNER JOIN node_revision revision ON revision.vid = base.vid
LEFT JOIN node_revision revision_2 ON revision_2.nid = base.nid AND revision_2.vid >= base.vid
GROUP BY base.nid
berdir’s picture

Played a bit with those queries on a site with 350k nodes and 810k revisions by selecting 10 nodes. Some nodes have hundreds of revisions because content is created/updated based on an external system and that can happen many times and creates a new revision each time. However, for all of those, latest revision = default revision as I don't have access to a system which uses forward revisions and has a lot of content. Not sure if the query result would look different then.

I also picked 10 nids where each had several hundred revisions.

The first query took 0.15s on production and ~0.04 after that (query cache is disabled, probably simply because the relevant rows were in memory now). The explain looks like this:

+------+-------------+----------+-------+-------------------+-----------+---------+--------------------------+------+-----------------------+
| id   | select_type | table    | type  | possible_keys     | key       | key_len | ref                      | rows | Extra                 |
+------+-------------+----------+-------+-------------------+-----------+---------+--------------------------+------+-----------------------+
|    1 | SIMPLE      | revision | range | PRIMARY,node__nid | node__nid | 4       | NULL                     | 5065 | Using index condition |
|    1 | SIMPLE      | base     | ref   | node__vid         | node__vid | 5       | ****.revision.vid |    1 |                       |
+------+-------------+----------+-------+-------------------+-----------+---------+--------------------------+------+-----------------------+

The second query takes 0.02-0.04s, probably not quite fair because I was querying for the same nodes and that data was already loaded, the explain:

+------+-------------+------------+-------+-------------------+-----------+---------+--------------------------+------+--------------------------------------------------------+
| id   | select_type | table      | type  | possible_keys     | key       | key_len | ref                      | rows | Extra                                                  |
+------+-------------+------------+-------+-------------------+-----------+---------+--------------------------+------+--------------------------------------------------------+
|    1 | SIMPLE      | revision   | range | PRIMARY,node__nid | node__nid | 4       | NULL                     | 5065 | Using index condition; Using temporary; Using filesort |
|    1 | SIMPLE      | base       | ref   | node__vid         | node__vid | 5       | ***.revision.vid |    1 |                                                        |
|    1 | SIMPLE      | revision_2 | ref   | PRIMARY,node__nid | node__nid | 4       | ***.base.nid     |    1 | Using where; Using index                               |
+------+-------------+------------+-------+-------------------+-----------+---------+--------------------------+------+--------------------------------------------------------+

So while it is not slower to execute, it does use a tempory/filesort, which I imagine could be a problem when loading a larger amount of data?

Does this help?

Edit: More readable explain: https://gist.githubusercontent.com/Berdir/5496a11d0ea30361170d7348095adc...

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

StatusFileSize
new50.42 KB

Revision trees:

- two new fields: revision_parent and revision_type

- revision type (revision scope?): workspace, content moderation, autosave

- revision types MAY be able to create new revision branches;

revision types that WILL create new braches: workspace (per-workspace revision), autosave (per-user revision)
revision types that WILL NOT create new braches: content moderation

- revision types that WILL create new branches WILL trigger conflict resolution when merging back into the main branch

hchonov’s picture

revision types that WILL create new branches WILL trigger conflict resolution when merging back into the main branch

@amateescu, the conflict resolution will need the revision ID of the entity revision of the main branch, from which the new branch has emerged. This is the original entity, which we'll use to detect whether a change has occurred only in one of the branches (auto merge) or in both of them (conflict). Therefore we have to track that revision ID as well, which will not change in the revisions of the new branch - either as a field on the entity or as metadata on the branch.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

StatusFileSize
new1.41 KB

Trying out an Entity reference patch.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

amateescu’s picture

amateescu’s picture

Status: Needs review » Needs work
amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new27.41 KB

Status: Needs review » Needs work

The last submitted patch, 147: make-the-sql-storage-use-the-last-installed-definitions-third-try.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new31.05 KB

Status: Needs review » Needs work

The last submitted patch, 149: wip.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new38.64 KB

Status: Needs review » Needs work

The last submitted patch, 151: wip.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new35.54 KB

Status: Needs review » Needs work

The last submitted patch, 153: wip.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new22.63 KB
amateescu’s picture

StatusFileSize
new22.63 KB
amateescu’s picture

StatusFileSize
new3.17 KB

The last submitted patch, 156: wip2.patch, failed testing. View results

amateescu’s picture

StatusFileSize
new3.21 KB
amateescu’s picture

StatusFileSize
new36.77 KB

Status: Needs review » Needs work

The last submitted patch, 160: wip2.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new57.79 KB

Status: Needs review » Needs work

The last submitted patch, 162: wip2.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new63.52 KB
new63.43 KB
amateescu’s picture

StatusFileSize
new66.18 KB
new66.09 KB
amateescu’s picture

StatusFileSize
new82.33 KB

Status: Needs review » Needs work

The last submitted patch, 166: wip.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new81.05 KB

Status: Needs review » Needs work

The last submitted patch, 168: wip.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new3.44 KB

Status: Needs review » Needs work

The last submitted patch, 170: wip3-other-stuff.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new89.02 KB

Status: Needs review » Needs work

The last submitted patch, 172: wip.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new5.14 KB

Status: Needs review » Needs work

The last submitted patch, 174: test.patch, failed testing. View results

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

amateescu’s picture

Status: Needs work » Needs review
StatusFileSize
new28.77 KB
amateescu’s picture

StatusFileSize
new589 bytes

Status: Needs review » Needs work

The last submitted patch, 178: test.patch, failed testing. View results

amateescu’s picture

Status: Needs work » Closed (outdated)