-
-
Save gaurav-singh1990/6a18f153b173994b8fb97092471615ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # slow query observable | |
| count_patient_subject = Rx::Observable.start( | |
| lambda { | |
| collection.aggregate(aggregate_query) | |
| }, | |
| context, | |
| Rx::DefaultScheduler.instance | |
| ) | |
| # fast query observable | |
| find_patient_subject = Rx::Observable.start( | |
| lambda { | |
| collection.find({}, { projection: {name:1}}).limit(5) | |
| }, | |
| context, | |
| Rx::DefaultScheduler.instance | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment