This document discusses DBIx::Cache, a Perl module that provides query caching capabilities for DBI database connections. It can cache SELECT statements using Memcached, Varnish, or other caching technologies to improve performance by reducing database queries and connections. The module overloads DBI methods to cache query results and supports caching of full queries or partial results, with options for configuring caching and invalidating cached queries when the database is updated.
This document discusses DBIx::Cache, a Perl module that provides query caching capabilities for DBI database connections. It can cache SELECT statements using Memcached, Varnish, or other caching technologies to improve performance by reducing database queries and connections. The module overloads DBI methods to cache query results and supports caching of full queries or partial results, with options for configuring caching and invalidating cached queries when the database is updated.
thing over and over and expecting different results” - Benjamin Franklin ● SELECT * FROM mytable; ● Query caching! ● What level? ● SELECTs only DBIx::Cache ● Overload DBI. memcached/Varnish/etc. ● $sth = $dbh->prepare(“SELECT ...”); ● $count = $sth->execute(); ● $row = $sth->fetch(); ● Invalidation - DBI and Postgres ● Partials. Race conditions ● Drop in. Toggle on and off. Configurable. Less queries, connections. Faster apps. ● Status? planetpostgresql.org