Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use a more sensible resolution on the new millisecond benchmarks | David Heinemeier Hansson | 2008-09-05 | 1 | -1/+1 |
| | |||||
* | Changed all benchmarking reports to be in milliseconds | David Heinemeier Hansson | 2008-09-05 | 1 | -3/+3 |
| | |||||
* | Handle connection timeouts with a slightly nicer error message. | Michael Koziarski | 2008-09-04 | 1 | -1/+1 |
| | |||||
* | Remove flawed execute("ROLLBACK") approach; #reset! defaults to nothing | Nick Sieger | 2008-09-04 | 2 | -5/+1 |
| | | | | | | Will need community help to fill out what #reset! should do for each adapter Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Default connection allow_concurrency to false (for PostgreSQL) | Nick Sieger | 2008-09-04 | 1 | -2/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Deprecate verification_timeout and verify before reset | Nick Sieger | 2008-09-04 | 3 | -17/+16 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | still need to track whether we're the toplevel transaction | Jeremy Kemper | 2008-09-04 | 1 | -3/+10 |
| | |||||
* | PostgreSQL: introduce transaction_active? rather than tracking activity ↵ | Jeremy Kemper | 2008-09-04 | 1 | -0/+32 |
| | | | | ourselves | ||||
* | Minor tweak to retrieve_connection_pool -- recurse instead of loop | Nick Sieger | 2008-08-29 | 1 | -6/+4 |
| | |||||
* | Remove some synchronization that's probably overkill, assuming one doesn't ↵ | Nick Sieger | 2008-08-29 | 1 | -10/+1 |
| | | | | establish connections frequently | ||||
* | Collapse connection pool class hierarchy; YAGNI. | Nick Sieger | 2008-08-29 | 2 | -112/+51 |
| | | | | | - 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 pool | Nick Sieger | 2008-08-29 | 2 | -33/+25 |
| | | | | - also clean up some cruft remaining from per-thread connection cache | ||||
* | Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵ | Nick Sieger | 2008-08-29 | 2 | -17/+9 |
| | | | | fixed pool with default maximum of 5 connections | ||||
* | Deprecate allow_concurrency and make it have no effect | Nick Sieger | 2008-08-29 | 3 | -40/+19 |
| | |||||
* | Add connection reset and verification upon each connection checkout | Nick Sieger | 2008-08-29 | 3 | -4/+27 |
| | |||||
* | Fix typo: was using brackets instead of parens. Must need more sleep. | Nick Sieger | 2008-08-29 | 1 | -1/+1 |
| | |||||
* | Favor existing connections over new ones if available | Nick Sieger | 2008-08-29 | 1 | -3/+3 |
| | |||||
* | More doco and class/method renames. Now have a strategy for integration with ↵ | Nick Sieger | 2008-08-29 | 1 | -24/+39 |
| | | | | ActionPack. | ||||
* | Fix checkin method, add a couple more tests | Nick Sieger | 2008-08-29 | 1 | -1/+1 |
| | |||||
* | Nearing the finish line. Initial fixed-size connection pool implemented, ↵ | Nick Sieger | 2008-08-29 | 2 | -22/+120 |
| | | | | more docs | ||||
* | Clean up the code, get rid of reserve/release, add some more docs | Nick Sieger | 2008-08-29 | 1 | -34/+51 |
| | |||||
* | Extract a base class for connection pools, start to flesh out ↵ | Nick Sieger | 2008-08-29 | 1 | -84/+105 |
| | | | | reserve/release API | ||||
* | Split connection handler into single- and multiple-thread versions. | Nick Sieger | 2008-08-29 | 2 | -31/+57 |
| | |||||
* | Connection handling methods extracted out into separate ConnectionHandler class | Nick Sieger | 2008-08-29 | 3 | -105/+117 |
| | | | | - delegating methods left behind | ||||
* | Fix failure to retain value of allow_concurrency | Nick | 2008-08-29 | 2 | -1/+3 |
| | | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql) | ||||
* | Add synchronization to connection pool also | Nick | 2008-08-29 | 2 | -4/+14 |
| | |||||
* | Introduce synchronization around connection pool access | Nick | 2008-08-29 | 2 | -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_pools | Nick | 2008-08-29 | 1 | -10/+20 |
| | | | | | - Distinguis meaning of "active_connections" to always mean connections associated with the current thread | ||||
* | Initial conversion to connection pool | Nick | 2008-08-29 | 3 | -171/+156 |
| | | | | | | 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-local | Nick Sieger | 2008-08-29 | 1 | -14/+29 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | PostgreSQL: fix quote_string for certain old pg drivers. [#94 state:resolved] | Lars Kanis | 2008-08-27 | 1 | -1/+1 |
| | |||||
* | PostgreSQL: pg driver expects nil instead of empty string for missing user/pass | Jeremy Kemper | 2008-08-26 | 1 | -2/+2 |
| | |||||
* | Don't set "NULL" as a constraint on nullable columns [#398 state:resolved] | Tarmo Tänav | 2008-08-23 | 1 | -6/+2 |
| | | | | This is already the default and adding it breaks SQL standards compatibility. | ||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-22 | 1 | -1/+5 |
| | | | | [#860 state:resolved] | ||||
* | Made migrations transactional for PostgreSQL [#834 state:resolved] | Tarmo Tänav | 2008-08-22 | 2 | -0/+11 |
| | | | | Patch originally from http://dev.rubyonrails.org/ticket/5470 | ||||
* | Ensure t.timestamps respects options. [#828 state:resolved] | Patrick Reagan | 2008-08-22 | 1 | -3/+4 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Properly quote CREATE DATABASE parameters in postgresql [#771 state:resolved] | Tarmo Tänav | 2008-08-22 | 1 | -3/+3 |
| | |||||
* | Revert "Performance: freeze cached rows instead of duping" | Jeremy Kemper | 2008-08-21 | 1 | -4/+13 |
| | | | | This reverts commit cd8e653d5b18e6d3c3acc9930832f8e23945e392. | ||||
* | Revert "coerce blank strings to nil values for boolean and integer fields" | Jeremy Kemper | 2008-08-21 | 1 | -5/+1 |
| | | | | | | This reverts commit aee14630d4dc0856e597794cc731fac68c2d2e34. [#860 state:incomplete] | ||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-21 | 1 | -1/+5 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix postgres bug when change_column is called with invalid parameters. [#861 ↵ | Miles Georgi | 2008-08-21 | 1 | -1/+2 |
| | | | | | | | state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee> Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Performance: freeze cached rows instead of duping | Jeremy Kemper | 2008-08-18 | 1 | -13/+4 |
| | |||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 2 | -0/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | validates_uniqueness_of uses database case sensitivity support instead of ↵ | Tarmo Tänav | 2008-07-31 | 2 | -0/+8 |
| | | | | | | using ruby Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fixed negative default integer parsing for Postgresql 8.3.3 | Tarmo Tänav | 2008-07-31 | 1 | -2/+2 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Revert "Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-27 | 1 | -1/+0 |
| | | | | | | ActiveRecord::Base.establish_connection" This reverts commit 8b858782fa693e89a47fc3dd5ae38d842ede6d04. | ||||
* | Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-21 | 1 | -0/+1 |
| | | | | ActiveRecord::Base.establish_connection | ||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 2 | -2/+2 |
| | |||||
* | Move the transaction counter to the connection object rather than ↵ | Jonathan Viney | 2008-07-15 | 1 | -0/+13 |
| | | | | | | | maintaining it on the current Thread. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#533 state:resolved] | ||||
* | SQLite: rename_column raises if the column doesn't exist. | Tarmo Tänav | 2008-07-14 | 1 | -0/+3 |
| | | | | [#622 state:resolved] |