Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-276

After 101 iterations cursor freezes (pure python)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu, CPython 2.7.1 / PyPy 1.6
    • # Replies:
      17
    • Last comment by Customer:
      true

      Description

      The following short snippet:

      for i, ad in enumerate(c.db.coll.find(fields=[])):
      logging.info('%d' % i)

      shows that after 101 iterations a freeze happens.

      CPython shows freeze for about 1-2 seconds and PyPy 1.6 freezes for several minutes!

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 19 weeks, 6 days ago
                Date of 1st Reply: