Feature #3337

Allow to count lazy-loaded objects without fetching them from the persistence layer

Added by Bastian Waidelich about 6 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2009-05-16
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Persistence
Target version:-
PHP Version: Complexity:
Has patch:

Description

It should be possible to count objects in a repository without the need to actually fetch and initialize them.
It would be useful to be able to call

count($blog->posts);
without actually fetching all posts.


Related issues

related to TYPO3.Flow - Major Feature #6267: Speed up persistence Resolved 2010-01-18
blocked by TYPO3.Flow - Feature #6120: Re-implement lazy loading in persistence... Resolved 2010-01-20

Associated revisions

Revision 6027ad2b
Added by Karsten Dambekalns over 5 years ago

[+FEATURE] FLOW3 (Persistence): Reimplemented lazy loading, resolves #6120. See updated manual for details.
[+FEATURE] FLOW3 (Persistence): Lazy loaded SplObjectStorage can now be counted without triggering activation, resolves #3337.
[~API] FLOW3 (Persistence): Moved the BackendInterface into the Backend namespace.
[-API] FLOW3 (Persistence): Removed the DataMapperInterface. Backends should follow the defined data structure.
[~TASK] FLOW3 (Persistence): Optimized clean data handling while dirty checking, reducing memory usage.

History

#1 Updated by Robert Lemke about 6 years ago

  • Target version set to 283

#2 Updated by Robert Lemke about 6 years ago

  • Priority changed from Should have to Could have
  • Target version changed from 283 to 1.0 alpha 2

#3 Updated by Robert Lemke about 6 years ago

  • Target version changed from 1.0 alpha 2 to 283

#4 Updated by Robert Lemke about 6 years ago

  • Target version deleted (283)

#5 Updated by Karsten Dambekalns almost 6 years ago

  • Status changed from New to Accepted

#6 Updated by Karsten Dambekalns over 5 years ago

  • Subject changed from Allow to count lazy-loaded objects without fetching them from the CR to Allow to count lazy-loaded objects without fetching them from the persistence layer
  • Priority changed from Could have to Should have

#7 Updated by Jochen Rau over 5 years ago

I have implemented this in Extbase with a initialize template method in the LazyLoadingProxy/LazyObjectStorage.

#8 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3930.

Also available in: Atom PDF