Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1511

Suggestion on the docs for batch processing

    Details

    • Type: Documentation Documentation
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      br0wser

      Description

      I am refering to the examples on

      http://www.doctrine-project.org/docs/orm/2.0/en/reference/batch-processing.html

      Let's say you want to process a bulk of 25 objects and have a batchsize of 20.
      With the code provided the last 5 would not be saved as far as I understand unless you do another flush after the for-loop.

      This is probably very clear to any experienced Doctrine developer but maybe it is also confusing for beginners like me (some internet sources say, that flush is executed automatically at the end of the request, but obviously it is not). Maybe this could be mentioned somewhere?

        Activity

        Jamie Wong created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13221 ] jira-feedback [ 13993 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13993 ] jira-feedback2 [ 15857 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15857 ] jira-feedback3 [ 18113 ]

        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-1511, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jamie Wong
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: