Igal Koshevoy
d0d5eec199
Added CouchRest::Database#bulk_save_doc and #batch_save_doc as human-friendlier wrappers around #save_doc.
2009-11-15 23:15:20 -08:00
Igal Koshevoy
62ea68df63
Improved CouchRest::Database#save_doc, added "batch" mode to significantly speed up saves at cost of lower durability gurantees.
2009-11-15 23:14:09 -08:00
Julien Sanchez
b5d6baaf11
Save on Document & ExtendedDocument crashed if bulk
...
- document#save expects to receive {"ok" => true} even with bulk mode
- ExtendedDocument#save_without_callbacks reverted to previous code
(expecting result["ok"] as in create_without_callbacks)
2009-10-18 01:59:31 +08:00
Matt Aimonetti
ccdf9d779a
removed the Database class deprecation notices
2009-08-24 17:32:34 -07:00
Matt Aimonetti
5270fde0fa
added an option to force the deletion of a attachment
2009-07-29 20:12:35 -07:00
Matt Aimonetti
b2a29d9eb7
started extracting the http layer
2009-07-14 01:43:40 -07:00
Matt Aimonetti
c18567f8fc
differentiated attachment's URI and URL
2009-06-07 18:51:31 -07:00
Matt Aimonetti
295c0f0511
fixed the design doc cache issue
2009-05-27 23:59:43 -07:00
Matt Aimonetti
c35c35157a
added an automated way to mark design docs as dirty after the db was reset
2009-05-27 18:16:50 -07:00
Matt Aimonetti
e48a6c8866
fixed all the specs so we are back to green
2009-05-26 18:27:49 -07:00
Matt Aimonetti
92b77a9649
fixed bulk_load/get_bulk and the specs
2009-05-13 20:44:57 -07:00
Chris Anderson
8363aa6298
added bulk_load macro
2009-05-08 19:00:39 -07:00
Brian Candler
190bd13723
Escape slash in database name
2009-03-27 10:26:54 -07:00
Geoff Buesing
4d8314124b
Remove CouchRest.move, CouchRest::Database#move and #move_doc, because these methods are no longer supported by CouchDB
...
Ref: http://n2.nabble.com/Removing-MOVE-td2490780.html#a2490780
2009-03-18 11:22:49 -05:00
Chris Anderson
fbc21aacd9
updater is simpler now that I learned about open_revs=all
2009-03-14 19:00:26 -07:00
Chris Anderson
8964a9b282
created upgrade helper
2009-03-14 18:42:34 -07:00
Chris Anderson
7b03c7ba25
fix for design doc url changes
2009-03-09 13:12:28 -07:00
Matt Aimonetti
813f673d88
increased the bulk cache limit to 500, it can be manually increased up to 1000 safely
2009-03-05 15:06:56 -08:00
Matt Aimonetti
fe489f2d38
removed CouchRest::Model, added more specs and fixed a bug with casted CR::ExtendedDocument
2009-02-24 22:51:13 -08:00
Matt Aimonetti
c4cce18389
added database.bulk_delete as an alias for #bulk_save, added support for Model.by_view_name in ExtendedDoc and bumped the version to 0.13.3
2009-02-17 00:36:11 -08:00
Chris Anderson
60c577963d
all specs pass; refined attachment api
2009-02-02 15:24:31 -08:00
Matt Aimonetti
84e2bf94e4
slight change of API, CR::Document now uses <action>_doc instead of <action>, also added #create! and #recreate! to Document instances
2009-02-02 14:50:30 -08:00
Matt Lyon
b915f7f708
- Added Database#delete_attachment, for removing them directly
...
- Modified Database#fetch_attachment to take a doc as its first argument +as well as+ a docid, to be consistent with the other attachment methods.
- Refactored the attachment uri generation used by #fetch_attachment, #put_attachment, and #delete_attachment to a common private method, #uri_for_attachment
2009-02-02 01:25:14 -08:00
Matt Lyon
571cd257e0
database replication methods, no conflict resolution provided
2009-02-02 01:25:13 -08:00
Chris Anderson
e9f7456eab
change couchrest back to _temp_view, rev gem version
2009-01-27 15:11:10 -08:00
Chris Anderson
8f24d7d5a3
bulk_save has an option to have couch add the uuids
2009-01-23 23:25:24 -08:00
Chris Anderson
6b57357fc0
merge deferred-delete
2009-01-12 20:01:37 -08:00
Chris Anderson
bca68cf1a9
design doc ids fixed throughout
2009-01-12 19:54:02 -08:00
Chris Anderson
d1f8970c84
fixed ddoc names on get
2009-01-12 19:50:00 -08:00
Antony Blakey
36945d5a13
Add bulk save deferal option to db.delete / doc.destroy, just like on save.
2009-01-09 20:29:08 +10:30
Matt Lyon
9faa9daaca
support for couchdb's support for the COPY and MOVE verbs. depends on my commit to RestClient, currently only in b5d75acc68
...
I have considered adding this to the CouchRest::Document class as well ("@doc.copy new-id" and such) but haven't yet.
2009-01-05 00:44:12 -08:00
Matt Lyon
e15581b1dd
fix temp_view -> slow_view stuff for couchdb trunk
2009-01-04 23:00:59 -08:00
Nolan Darilek
84382d8af4
Removed model create/update callbacks and integrated with new bulk save infrastructure.
2008-12-15 10:27:53 -06:00
Nolan Darilek
d8d5645ebd
Make bulk saving more flexible.
...
* Database#save(doc, true) caches the doc in a database-specific bulk
cache.
* Database#save(doc, false), default, saves normally, bulk saving and
emptying the cache if one exists.
* The cache is automatically saved on Database#save if it excedes a
configurable limit, 50 by default.
* Database#bulk_save without arguments saves and clears the bulk save
cache.
2008-12-14 23:17:35 -06:00
Nolan Darilek
dd7f109878
Add support for database compaction.
2008-12-14 17:29:15 -06:00
Chris Anderson
19a70ffd7d
got view queries happening correctly
2008-11-21 16:21:20 -08:00
Chris Anderson
0769c2690f
on the road toward design docs
2008-11-08 16:28:58 -08:00
Chris Anderson
6851c7a2be
views accept blocks
2008-10-14 15:08:17 -07:00
Chris Anderson
254eb20161
view blocks flow
2008-10-14 01:07:48 -07:00
Chris Anderson
54a0afdf8e
added block yields to db.view
2008-10-13 16:46:48 -07:00
Chris Anderson
e2f7163816
multi-key support for views, temp-views, and alldocs
2008-10-08 12:19:28 -07:00
Chris Anderson
2b7e49c9c6
put attachments
2008-09-30 17:22:54 -07:00
Chris Anderson
902e1bed26
moved specs so the autotest filemapping works better
2008-09-30 16:21:28 -07:00
Chris Anderson
b3b58ffa83
polished documentation
2008-09-29 23:39:57 -07:00
Chris Anderson
26c4db7fc6
documenting CouchRest::Model
2008-09-29 23:26:34 -07:00
Chris Anderson
9e4d5c0eda
backwards compatibility for old couchdbs
2008-09-13 18:59:24 -04:00
Chris Anderson
f5fdc8b913
made CouchRest a module
2008-09-11 21:14:34 -07:00