Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use $wpdb for realtime actions #1

Open
k1sul1 opened this issue Jan 15, 2018 · 0 comments
Open

Use $wpdb for realtime actions #1

k1sul1 opened this issue Jan 15, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@k1sul1
Copy link
Owner

k1sul1 commented Jan 15, 2018

TL;DR Me using PDO has the cost of opening a new database connection. Every time a request goes to PHP and this plugin, 2 connections are opened. It takes a bit of time and resources to open one, using $wpdb will get rid of the overhead at the cost of me ripping my hair off.

In bulk generation it doesn't really matter, but for requests to the endpoint it does. Unless you cache heavily, which you should, but still...

@k1sul1 k1sul1 added the enhancement New feature or request label Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant