Commit graph

523 commits

Author SHA1 Message Date
Greg Weber
3c77f29e83 ignore dist/ 2012-02-29 11:36:14 -08:00
Greg Weber
b706780844 use -fno-warn-orphans 2012-02-29 11:35:55 -08:00
Tony Hannan
a618ebbf95 Merge pull request #16 from A1kmm/master
Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function
2012-02-20 08:10:33 -08:00
Andrew Miller
d3f54922cc Add routedHost as an alternative to primary / secondaryOk that lets the user supply their own sort function. This is useful for applications like preferentially connecting to the host or secondary that is geographically the closest. 2012-02-12 17:34:07 +13:00
Tony Hannan
5e015dc769 Merge pull request #14 from yesodweb/show-AccessMode
show instance for AccessMode
2012-01-28 15:50:53 -08:00
Greg Weber
6ef19663cf show instance for AccessMode 2012-01-27 12:48:54 -03:00
Tony Hannan
2f23e78c28 Use MVar from lifted-base 2012-01-23 20:45:10 -05:00
Tony Hannan
d0aeb42e7c merge duplicate code 2012-01-23 19:45:42 -05:00
Tony Hannan
b8f25ad6f0 bump version for latest lifted-base 2012-01-23 19:14:36 -05:00
Tony Hannan
5c2a296fa1 Merge pull request #12 from mkscrg/master
Fix for tailable cursor
2012-01-23 16:11:43 -08:00
Michael S. Craig
fa95b65fad Fix for bad behavior when using TailableCursor.
`Database.MongoDB.Query.next` and `nextBatch` prefetch a promise of the next
batch of documents from the server whenever the current batch has been
exhausted. The following call to `next` or `nextBatch` fulfills that promise
(thereby turning it into a concrete batch of documents) and then returns one or
more documents in the batch.

The old behavior was to raise an exception if an empty batch with a nonzero
cursor ID was encountered. This is normal when using tailable cursors, so a
change was required.

Now, `Nothing` is returned with the still-live cursor ID, instead of raising
the exception. Also, prefetched empty batches with nonzero cursor IDs are
refetched once per call to avoid stale data.

This new prefetching behavior does not affect the performance of `next`, except
when calling it repeatedly on a tailable cursor with no new data. In those
(generally avoidable) cases, each call to `next` results in two server calls
instead of one.
2011-12-13 11:02:57 -05:00
Tony Hannan
6faad5d866 Merge pull request #9 from alphaHeavy/monad-control
Updating to monad-control-0.3, with help from Bas van Dijk.
2011-12-06 15:17:06 -08:00
Nathan Howell
b18f81f431 Updating to monad-control-0.3, with help from Bas van Dijk.
Conflicts:

	Database/MongoDB/Query.hs
2011-12-05 09:23:39 -08:00
Tony Hannan
d506011cd1 fix some warnings. bump version for previous 7.2.1 compatibility fix 2011-11-10 10:23:07 -05:00
Tony Hannan
9dae52a374 Merge pull request #7 from ryantrinkle/master
Fixed brokenness in 7.2.1 (field labels for RecordWildCards must be in scope)
2011-10-28 08:50:18 -07:00
Ryan Trinkle
ccd217053b fix missing record field in P.Request value
the fields of a Database.MongoDB.Internal.Protocol.Query were not filled in by RecordWildcard on line 411 of Database/MongoDB/Query.hs because the record fields were not in scope
2011-10-27 15:24:37 -04:00
Tony Hannan
889aaba0f8 fix typo in article 2011-09-12 10:46:24 -04:00
Tony Hannan
bc3866b79c new version using MonadControlIO instead of custom MonadMVar 2011-09-08 18:56:38 -04:00
Tony Hannan
747fd0ae87 fix typo in previous merge 2011-09-07 23:51:57 -04:00
Tony Hannan
efb6b65506 QueryFailure error code 2011-09-07 12:09:20 -04:00
Tony Hannan
81c4f95d5a Merge pull request #4 from yesodweb/master
Use MonadControlIO instead of custom MonadMVar
2011-09-07 09:07:07 -07:00
Michael Snoyman
a320c363e4 Move to monad-control 2011-08-25 16:29:39 +03:00
Tony Hannan
4307fea5aa collect ids from insert lazily in case not used 2011-08-18 19:41:32 -04:00
Tony Hannan
35801ef052 small edit to slides 2011-07-30 13:12:12 -04:00
Tony Hannan
e152f5b69b use ExtendedDefaultRules in example 2011-07-30 12:49:37 -04:00
Tony Hannan
c2ca221a6c Intro to MongoDB slides 2011-07-28 10:45:10 -04:00
Tony Hannan
dad5134863 remote ghc-option -O because Cabal does it 2011-07-22 10:58:56 -04:00
Tony Hannan
c99cb54251 Partial results option 2011-07-22 10:38:50 -04:00
Tony Hannan
17ceb53234 tailable cursor 2011-07-22 10:31:24 -04:00
Tony Hannan
58f83838de Cursor nextBatch 2011-07-21 18:50:52 -04:00
Tony Hannan
5e4a8aee3f insertAll (KeepGoing) 2011-07-21 16:39:19 -04:00
Tony Hannan
19da43a348 connect timeout 2011-07-21 11:27:19 -04:00
Tony Hannan
9d2f09a91e small edit to article 2011-07-19 14:43:53 -04:00
Tony Hannan
66d7bd3ef6 small edit to article 2011-07-19 11:02:23 -04:00
Tony Hannan
61ba31b668 small edit to article 2011-07-19 10:59:38 -04:00
Tony Hannan
a1ed175bc2 small edit to article 2011-07-18 16:33:12 -04:00
Tony Hannan
82a846e918 small edit to article 2011-07-18 16:00:02 -04:00
Tony Hannan
f8b8886f53 small edit to article 2011-07-18 15:46:40 -04:00
Tony Hannan
0e8db8842d small edit to article 2011-07-18 15:29:09 -04:00
Tony Hannan
dfee84203b Finish first draft of Considering Haskell article 2011-07-18 15:21:36 -04:00
Tony Hannan
febd7ba15b Consider Haskell article 2011-07-15 17:43:31 -04:00
Tony Hannan
7a2619df22 Intro to Haskell article (second draft) 2011-07-15 12:14:29 -04:00
Tony Hannan
acb0d62aa2 Intro to Haskell article (first draft) 2011-07-14 18:47:14 -04:00
Tony Hannan
25a827a46c small edit to article 2011-07-13 16:04:37 -04:00
Tony Hannan
e44193f963 small edit to article 2011-07-13 16:03:14 -04:00
Tony Hannan
bba1c7f141 small edit to article 2011-07-13 15:56:16 -04:00
Tony Hannan
5cc5ec477f Fix ReadMe's driver design link 2011-07-13 15:40:48 -04:00
Tony Hannan
b3a4ceba3b design doc 2011-07-13 15:35:44 -04:00
Tony Hannan
8025ac4ec4 Small edits to some comments. fix secondaryOk to return master only when no secondaries available 2011-07-13 15:34:52 -04:00
Tony Hannan
8672652395 move Pool to System.IO. update docs 2011-07-12 10:51:54 -04:00