Keep a handle on your databases
Connecting to a database can be slow
Try to connect once and stay connected where practical
- We'll discuss web server issues later
The connect_cached() method
- Acts like prepare_cached() but for database handles
- It also checks the connection and reconnects if it's broken
- Like prepare_cached(), it’s most handy for library code
- Similar, but not quite the same as Apache::DBI
- New and subject to change with experience
- Potentially most useful with DBD::Proxy & DBI::ProxyServer
- Works well combined with prepare_cached()