Hacker News new | ask | show | jobs
by saltybytes 725 days ago
How's Corcel different to using WP's own API? What are the pros / cons?
1 comments

A direct database connection means almost all of your queries will work without any error handling. Using an API requires you to handle lost connection every time you make a request.

Direct database connections almost always are orders of magnitude faster, especially when joins are involved.