Doctrine Project

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Doctrine 2 - ORM
  • Doctrine 2 - ORM
  • DDC-952 Several features to batch eager selec...
  • DDC-53

Introduce batching of eager loads

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0-ALPHA2
  • Fix Version/s: 2.1
  • Component/s: None
  • Security Level: All
  • Labels:
    None

Description

During hydration when an association is encountered that is configured EAGER this entity is directly loaded through a separate SQL statement. This is inefficient for single-valued associations as it leads to the n+1 queries problem. This should be improved by somehow collecting all entities that need to be eagerly fetched and loading them in a single statement or in batches.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • Source
Hide
Permalink
Roman S. Borschel added a comment - 31/Oct/09 9:13 AM - edited

Update: This affects inverse sides of a one-one association since these can never be lazy as well as one-one owning sides that are configured EAGER.

Probably batching of collection loads is also somehow possible but all this needs quite some design and planning before implementation.

Show
Roman S. Borschel added a comment - 31/Oct/09 9:13 AM - edited Update: This affects inverse sides of a one-one association since these can never be lazy as well as one-one owning sides that are configured EAGER. Probably batching of collection loads is also somehow possible but all this needs quite some design and planning before implementation.
Hide
Permalink
Roman S. Borschel added a comment - 26/Aug/10 8:02 AM

Rescheduled.

Show
Roman S. Borschel added a comment - 26/Aug/10 8:02 AM Rescheduled.
Hide
Permalink
Benjamin Eberlei added a comment - 06/Mar/11 5:26 AM - edited

I implemented batching of eager loads for Many-To-One and Owning One-To-One associations so far as part of DDC-952.

Show
Benjamin Eberlei added a comment - 06/Mar/11 5:26 AM - edited I implemented batching of eager loads for Many-To-One and Owning One-To-One associations so far as part of DDC-952 .
Hide
Permalink
Benjamin Eberlei added a comment - 16/Mar/11 6:35 PM

Implemented

Show
Benjamin Eberlei added a comment - 16/Mar/11 6:35 PM Implemented

People

  • Assignee:
    Benjamin Eberlei
    Reporter:
    Roman S. Borschel
Vote (1)
Watch (0)

Dates

  • Created:
    15/Oct/09 6:32 PM
    Updated:
    16/Mar/11 6:35 PM
    Resolved:
    16/Mar/11 6:35 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Doctrine Project. Try JIRA - bug tracking software for your team.