Skip to content
Snippets Groups Projects

Issue #2950869 by Fabianx, amateescu, alexpott, abhishek-anand, adam.weingarten, Timmy_Cos, bryanmanalo, corneboele, matsbla, Wim Leers, mheip, effulgentsia, mariancalinro, Krzysztof Domański: Entity queries querying the latest revision very slow with lot

Open Issue #2950869 by Fabianx, amateescu, alexpott, abhishek-anand, adam.weingarten, Timmy_Cos, bryanmanalo, corneboele, matsbla, Wim Leers, mheip, effulgentsia, mariancalinro, Krzysztof Domański: Entity queries querying the latest revision very slow with lot
2 unresolved threads
2 unresolved threads

Issue #2950869 by Fabianx, amateescu, alexpott, abhishek-anand, adam.weingarten, Timmy_Cos, bryanmanalo, corneboele, matsbla, Wim Leers, mheip, effulgentsia, mariancalinro, Krzysztof Domański: Entity queries querying the latest revision very slow with lots of revisions

Closes #2950869

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
375 375 $expected = [1 => '1', 2 => '2', 3 => '3', 16 => '4', 17 => '5', 18 => '6', 19 => '7', 8 => '8', 9 => '9', 10 => '10', 11 => '11', 20 => '12', 21 => '13', 22 => '14', 23 => '15'];
376 376 $this->assertSame($expected, $results);
377
378 $results = $this->queryResults = $this->storage
379 ->getQuery()
380 ->latestRevision()
381 ->notExists("$figures.color")
382 ->accessCheck(TRUE)
383 ->execute();
384 $expected = [16 => '4', 8 => '8', 20 => '12'];
385 $this->assertSame($expected, $results);
386
387 // Update an entity.
388 $entity = EntityTestMulRev::load(4);
389 $entity->setNewRevision();
390 $entity->$figures->color = 'red';
  • daffie
    daffie @daffie started a thread on the diff
  • 132 132 // Add a self-join to the base revision table if we're querying only the
    133 133 // latest revisions.
    Please register or sign in to reply
    Loading