GitXplorerGitXplorer
l

prepared_statement_example

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
6f773c49d28b1e2de9b9a1c0bb560505b7494049

README as markdown

llsimoneau committed 9 years ago
Unverified
4038bbe6f8e9a693dc7ff5a09f37202bf9eb2b4d

Add notes to README

llsimoneau committed 9 years ago
Unverified
e59bee2ebd82b3bd098d541225c67e5cbc43bc6b

Demo app showing accumulation of single-use prepared statements

llsimoneau committed 9 years ago

README

The README file for this repository.

README

This app demonstrates the accumulation of single-use prepared statements on each db connection in ActiveRecord when some types of queries are used.

Just visit /posts and refresh the page and you should see a list of prepared statements at the bottom of the page, which will grow with each request.

With apps scaled out to several application servers, each with lots of worker processes, you can quite easily have hundreds of connections, and if each of them is using a pool of 1000 prepared statements the db will likely run out of memory.