mongodb behavior or a bug? #212
pavlis
started this conversation in
Design & Development
Replies: 1 comment 1 reply
-
Shouldn't that line be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered a surprise when I tried running the following block of code working on the 2012 miniseed data on quakes.
This produced this output:
The second print and the code means I should expect to see 3682 lines from the final print statement in this box from the notebook. Instead I got just one. I discovered by commenting out pieces of this that the problem is this:
The operation applied to the Database class seems to invalidate the cursor driving this loop so the loop terminates after the first entry in the cursor.
Is this a feature of MongoDB or is this a bug in get_seed_channel (or maybe my script above)? I can imagine it is a property of MongoDB but if so the behavior is surprising. Any ideas on this?
Beta Was this translation helpful? Give feedback.
All reactions