0% found this document useful (0 votes)
24 views

74 Dbixcache

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.

Uploaded by

warwithin
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

74 Dbixcache

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.

Uploaded by

warwithin
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DBIx::Cache

● “The definition of insanity is doing the same


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

You might also like