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-1285

Select by multiple ids

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: In Progress In Progress
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 2.x
  • Component/s: Mapping Drivers, ORM
  • Security Level: All
  • Labels:
    None

Description

How do you look at adding findByIds(array $ids) to EntityManager and UnitOfWork? This would allow fetching multiple entities from a database at one request and would be very useful for caching - there would be even some kind of IdentityMap kept in memcached or any other caching engine, that supports multiple id retrieval: i've been using such an architecture in multiple projects and it turned out to be very effective. There were two basic methods - findIdsByFilter(array $filter) and findEntitiesByIds(array $ids). The latter one had a caching proxy, replicating entities to a cache storage. If this idea proceeds - I'd be glad to cover it with more details.

This topic on StackOverflow could also help:
http://stackoverflow.com/questions/276709/design-pattern-for-memcached-data-caching

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
  • Source
Benjamin Eberlei made changes - 26/Aug/11 6:15 AM
Field Original Value New Value
Fix Version/s 2.1.2 [ 10154 ]
Fix Version/s 2.1.1 [ 10153 ]
Benjamin Eberlei made changes - 25/Sep/11 6:31 PM
Fix Version/s 2.1.3 [ 10164 ]
Fix Version/s 2.1.2 [ 10154 ]
Benjamin Eberlei made changes - 21/Nov/11 3:12 PM
Fix Version/s 2.1.4 [ 10165 ]
Fix Version/s 2.1.3 [ 10164 ]
Benjamin Eberlei made changes - 23/Nov/11 7:54 PM
Fix Version/s 2.2-DEV [ 10157 ]
Fix Version/s 2.1.4 [ 10165 ]
Hide
Permalink
Guilherme Blanco added a comment - 20/Dec/11 10:21 PM

Updating fix version

Show
Guilherme Blanco added a comment - 20/Dec/11 10:21 PM Updating fix version
Guilherme Blanco made changes - 20/Dec/11 10:21 PM
Fix Version/s 2.x [ 10090 ]
Fix Version/s 2.2 [ 10157 ]
Benjamin Eberlei made changes - 07/Jul/12 2:01 PM
Workflow jira [ 12842 ] jira-feedback [ 13953 ]
Benjamin Eberlei made changes - 07/Jul/12 2:08 PM
Workflow jira-feedback [ 13953 ] jira-feedback2 [ 15817 ]
Benjamin Eberlei made changes - 08/Jul/12 6:21 AM
Workflow jira-feedback2 [ 15817 ] jira-feedback3 [ 18073 ]
Serge Smertin made changes - 04/Nov/12 7:25 PM
Status Open [ 1 ] Awaiting Feedback [ 10000 ]
Anonymous made changes - 11/Jan/13 1:13 AM
Status Awaiting Feedback [ 10000 ] In Progress [ 3 ]
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
  • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1285, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

People

  • Assignee:
    Benjamin Eberlei
    Reporter:
    Serge Smertin
Vote (1)
Watch (1)

Dates

  • Created:
    22/Jul/11 12:30 PM
    Updated:
    11/Jan/13 1:13 AM
  • 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.