aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* Merge docrailsPratik Naik2008-12-192-1/+4
|
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Merge branch 'master' into testingJeremy Kemper2008-11-081-3/+11
|\
| * Timeout the connection pool monitor on ruby 1.8 onlyJeremy Kemper2008-11-081-3/+11
| |
* | Merge branch 'master' into testingJeremy Kemper2008-11-071-4/+1
|\|
| * Simplify dispatcher callbacks to eliminate unnecessary stale thread purging. ↵Nick Sieger2008-11-081-4/+1
| | | | | | | | | | | | [Nick Sieger, Pratik Naik] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | undef abstract methods instead of raising NotImplementedError. Still need ↵Jeremy Kemper2008-11-071-4/+4
|/ | | | the definitions for rdoc though.
* Make sure ActiveRecord::Base.connected? doesn't raise an exception for ↵Pratik Naik2008-11-061-1/+2
| | | | defined connections
* Ensure ActiveRecord::ConnectionPool.connected? handles undefined ↵Wes Oldenbeuving2008-11-061-1/+1
| | | | | | connections. [#936 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* It is not necessary to store QueryCache in a thread local since the cache is ↵Joshua Peek2008-10-301-27/+14
| | | | local to the connection object which is managed by the connection pool
* Use database name in query cache thread local key [#1283 state:resolved]Joshua Peek2008-10-301-3/+2
|
* Add documentation for AbstractAdapter#sanitize_limit, and make its code more ↵Hongli Lai (Phusion)2008-10-091-4/+15
| | | | | | | readable. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1068 status:committed]
* Merge docrailsPratik Naik2008-10-053-6/+86
|
* made ConnectionPool#checkout more robust by trying to loot dead threads when ↵Aliaksey Kandratsenka2008-10-041-1/+5
| | | | | | | | pool is empty Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1169 state:committed]
* Fix race in ConnectionPool#checkoutAliaksey Kandratsenka2008-10-041-15/+14
| | | | | | | After releasing monitor some connection(s) may appear in pool before monitor is re-aquired. When this happens we'll wait for connection which is already available. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Deal with MySQL's quirky handling of defaults and blob/text columnsFrederick Cheung2008-09-141-0/+4
| | | | | | [#1043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2008-09-131-2/+36
|
* Support :limit on update_all so that has_many with :limit can be safely updatedTarmo Tänav2008-09-101-0/+4
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Handle connection timeouts with a slightly nicer error message.Michael Koziarski2008-09-041-1/+1
|
* Default connection allow_concurrency to false (for PostgreSQL)Nick Sieger2008-09-041-2/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate verification_timeout and verify before resetNick Sieger2008-09-042-9/+12
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Minor tweak to retrieve_connection_pool -- recurse instead of loopNick Sieger2008-08-291-6/+4
|
* Remove some synchronization that's probably overkill, assuming one doesn't ↵Nick Sieger2008-08-291-10/+1
| | | | establish connections frequently
* Collapse connection pool class hierarchy; YAGNI.Nick Sieger2008-08-291-112/+48
| | | | | - Add connection checkin and checkout callbacks to adapter to allow adapter-specific customization of behavior (e.g., JRuby w/ JNDI)
* Make clear_active_connections! also return stale connections back to the poolNick Sieger2008-08-292-33/+25
| | | | - also clean up some cruft remaining from per-thread connection cache
* Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵Nick Sieger2008-08-291-17/+4
| | | | fixed pool with default maximum of 5 connections
* Deprecate allow_concurrency and make it have no effectNick Sieger2008-08-292-39/+16
|
* Add connection reset and verification upon each connection checkoutNick Sieger2008-08-291-2/+7
|
* Fix typo: was using brackets instead of parens. Must need more sleep.Nick Sieger2008-08-291-1/+1
|
* Favor existing connections over new ones if availableNick Sieger2008-08-291-3/+3
|
* More doco and class/method renames. Now have a strategy for integration with ↵Nick Sieger2008-08-291-24/+39
| | | | ActionPack.
* Fix checkin method, add a couple more testsNick Sieger2008-08-291-1/+1
|
* Nearing the finish line. Initial fixed-size connection pool implemented, ↵Nick Sieger2008-08-292-22/+120
| | | | more docs
* Clean up the code, get rid of reserve/release, add some more docsNick Sieger2008-08-291-34/+51
|
* Extract a base class for connection pools, start to flesh out ↵Nick Sieger2008-08-291-84/+105
| | | | reserve/release API
* Split connection handler into single- and multiple-thread versions.Nick Sieger2008-08-292-31/+57
|
* Connection handling methods extracted out into separate ConnectionHandler classNick Sieger2008-08-292-104/+116
| | | | - delegating methods left behind
* Fix failure to retain value of allow_concurrencyNick2008-08-292-1/+3
| | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql)
* Add synchronization to connection pool alsoNick2008-08-292-4/+14
|
* Introduce synchronization around connection pool accessNick2008-08-292-21/+43
| | | | | | - use new active support Module#synchronize - allow_concurrency now switches between a null monitor and a regular monitor (defaulting to null monitor to avoid overhead)
* Rename defined_connections to connection_poolsNick2008-08-291-10/+20
| | | | | - Distinguis meaning of "active_connections" to always mean connections associated with the current thread
* Initial conversion to connection poolNick2008-08-292-171/+155
| | | | | | So far so good, tests still run clean. Next steps: synchronize connection pool access and modification, and change allow_concurrency to simply switch a real lock for a null lock.
* Make query-cache thread-localNick Sieger2008-08-291-14/+29
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Don't set "NULL" as a constraint on nullable columns [#398 state:resolved]Tarmo Tänav2008-08-231-6/+2
| | | | This is already the default and adding it breaks SQL standards compatibility.
* coerce blank strings to nil values for boolean and integer fieldsJosh Susser2008-08-221-1/+5
| | | | [#860 state:resolved]
* Ensure t.timestamps respects options. [#828 state:resolved]Patrick Reagan2008-08-221-3/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Performance: freeze cached rows instead of duping"Jeremy Kemper2008-08-211-4/+13
| | | | This reverts commit cd8e653d5b18e6d3c3acc9930832f8e23945e392.
* Revert "coerce blank strings to nil values for boolean and integer fields"Jeremy Kemper2008-08-211-5/+1
| | | | | | This reverts commit aee14630d4dc0856e597794cc731fac68c2d2e34. [#860 state:incomplete]
* coerce blank strings to nil values for boolean and integer fieldsJosh Susser2008-08-211-1/+5
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Performance: freeze cached rows instead of dupingJeremy Kemper2008-08-181-13/+4
|