Michael Klishin
be95971e58
Bump MongoDB Java client to 3.3.0
2016-09-17 01:33:41 +03:00
Michael Klishin
2f19f62e3f
Depend on Clojure 1.8, test against 1.9 previews
2016-08-20 09:35:09 +03:00
Michael Klishin
668e46d57f
Merge pull request #141 from eunmin/add_currentDate_operator
...
Add currentDate operator
2016-08-19 08:41:29 +03:00
eunmin
df09c4085d
Add operator
2016-08-19 14:19:50 +09:00
Michael Klishin
5033018119
Merge pull request #140 from eunmin/master
...
Add missing MongoClientOptions
2016-07-07 15:32:20 +03:00
eunmin
ccffffc912
Add missing MongoClientOptions
2016-07-07 21:17:59 +09:00
Michael Klishin
9be707ea06
Merge pull request #135 from kronos/master
...
Fix keywordize param for find-map-by-id
2016-04-27 11:06:36 -05:00
Samsonov Ivan
2b4c0f8168
Fix keywordize param for find-map-by-id
2016-04-26 19:03:44 +03:00
Michael Klishin
f64d085b0f
Merge pull request #133 from divs1210/master
...
Fix reflection warnings.
2016-04-07 14:55:33 +03:00
Divyansh Prakash
5916642b2b
Fix reflection warnings.
2016-04-07 16:52:02 +05:30
Michael Klishin
07b63150d1
Test against Clojure 1.8.0
2016-03-31 02:55:15 +03:00
Michael Klishin
e842068f3e
Merge pull request #132 from tuhlmann/master
...
Fixing call to find-map-by-id, threw a ClassCastException
2016-03-27 19:34:50 +03:00
Torsten Uhlmann
9d51f32fa1
Fixing call to find-map-by-id, threw a ClassCastException
...
Fixes #131
2016-03-27 13:07:38 +02:00
Michael Klishin
765b9d1acf
Update change log
2016-01-16 14:31:27 +03:00
Michael Klishin
c54f70350e
Merge branch 'boechat107-typehint'
2016-01-16 14:28:52 +03:00
Michael Klishin
c7a87ac776
Merge branch 'typehint' of https://github.com/boechat107/monger into boechat107-typehint
2016-01-16 14:25:50 +03:00
Andre Ambrosio Boechat
bdecd98b40
with-collection macro: type hints improvement
...
From all the resources I found about type hinting in macros,
it doesn't work like it does for normal functions.
I got reflection warnings for a code like this:
```clj
(let [conn (mg/connect)
db (delay (mg/get-db conn "monger-test"))]
(with-collection @db "something"
(find {})))
```
The type hint for `db` didn't work. Actually the type hint that works
comes from the function `core/get-db` and we see this when we remove
`delay` from the code above. As we could expect, the function `deref`
doesn't propagate the type hint.
I did similar tests with the collection name and no reflection warning
was raised for any case. In addition, it looked weird for me to have
a type hint like `^String` and then a checking like `string?` later.
Some references:
* http://stackoverflow.com/questions/11919602/generating-clojure-code-with-type-hints
* Clojure High Performance Programming, page 44.
2016-01-15 15:47:47 +01:00
Michael Klishin
189d347f50
Merge branch '3.0.x-stable'
2016-01-10 23:46:23 +03:00
Michael Klishin
114630f769
Back to dev version
2016-01-10 23:44:39 +03:00
Michael Klishin
6c25763748
3.0.2
2016-01-10 23:44:39 +03:00
Michael Klishin
fdb354b2db
Update change log
2016-01-10 23:44:39 +03:00
Michael Klishin
45cb68115b
Upgrade Java client to 3.2.0
2016-01-10 23:44:39 +03:00
Stijn Opheide
dd890231ee
Fix cursor hinting
...
The .hint method should be applied on the cursor object instead
of the DBObject contained in the hint field.
2016-01-10 23:44:39 +03:00
Michael Klishin
1764b898bd
Merge pull request #126 from stijnopheide/fix-cursor-hint
...
Fix cursor hinting
2016-01-06 14:33:38 +03:00
Stijn Opheide
b0df70f279
Fix cursor hinting
...
The .hint method should be applied on the cursor object instead
of the DBObject contained in the hint field.
2016-01-06 12:00:08 +01:00
Michael Klishin
85560e17f8
Update (c) year
2016-01-02 04:43:29 +03:00
Michael Klishin
57fb96a1b7
Upgrade to Codox 0.9.0
2015-12-20 02:11:15 +03:00
Michael Klishin
47d20761c5
Merge pull request #121 from Deraen/master
...
Add changelog entry for from-db-object perf improvement
2015-10-09 14:52:47 +03:00
Juho Teperi
50a8963ba2
Add changelog entry for from-db-object perf improvement
2015-10-09 12:56:43 +03:00
Michael Klishin
2856631638
Merge pull request #120 from Deraen/improve-from-db-object-perf
...
Improve from db object perf
2015-10-09 00:58:42 +03:00
Juho Teperi
1299e5e5ff
Remove from-db-object implementation for Map
...
It should be enough that from-db-object is implemented for DBObject
2015-10-09 00:49:28 +03:00
Juho Teperi
cf3d8f2ad3
Fix test cases cases trying to compare db-objects and maps
2015-10-09 00:48:57 +03:00
Juho Teperi
15edf63ffd
Fix test cases with bad = forms
2015-10-09 00:24:29 +03:00
Juho Teperi
c26ae0835d
Optimize from-db-object performance for DBObjects
...
Creating temporary sequence from DBObject is quite slow. Using
.keySet for reduce collection and calling .get inside reduce is
considerably faster. The common code between Map and DBObject
implementations can't be shared as reflection would completely kill the
performance and function can't be type hinted as DBObject doesn't
implement Map interface.
Added a simple test case for the from-db-object performance. I'm seeing
performance increase of 20% on this (170ms -> 140ms).
2015-10-08 22:59:47 +03:00
Juho Teperi
fe73144075
Fix map comparisons and rename test case
...
Two tests had the same name so only the latter was ran
2015-10-08 22:42:06 +03:00
Michael Klishin
2dc5e92b0c
Merge pull request #119 from tommireinikainen/update-contributing-md
...
Minor updates to CONTRIBUTING.md
2015-09-25 03:24:39 -07:00
Tommi Reinikainen
286493463b
add note to run before_script before tests, remove MongoDB version, fix Leiningen link
2015-09-25 10:03:28 +03:00
Michael Klishin
aec51c03f4
MongoDB Java driver 3.0.4
2015-09-25 01:50:27 +03:00
Michael Klishin
7195f77945
Install MongoDB 3.0 before running tests
2015-09-25 01:49:04 +03:00
Michael Klishin
b59ccb4087
Make this script executable
2015-09-25 01:48:58 +03:00
Michael Klishin
9178df179d
MongoDB installation script
2015-09-25 01:48:52 +03:00
Michael Klishin
8cefa7fc9e
Test 3.0.x, 2.1.x is no longer maintained
2015-09-25 01:48:46 +03:00
Michael Klishin
45599a4f51
Print MongoDB version on Travis
2015-09-25 01:48:35 +03:00
Michael Klishin
4e9f041ce9
Install MongoDB 3.0 before running tests
2015-09-25 01:45:38 +03:00
Michael Klishin
f24ee77730
Make this script executable
2015-09-25 01:44:48 +03:00
Michael Klishin
9928652b79
MongoDB installation script
2015-09-25 01:44:24 +03:00
Michael Klishin
56d16a4cee
Test 3.0.x, 2.1.x is no longer maintained
2015-09-25 01:31:23 +03:00
Michael Klishin
a500638891
Print MongoDB version on Travis
2015-09-25 01:31:11 +03:00
Michael Klishin
8bce5ae8ed
3.0.1 is out
2015-09-25 01:28:30 +03:00
Michael Klishin
2dc924faf4
Update change log
2015-09-25 01:28:21 +03:00