Jump to content
Rudy

Split database connection for read/write

Recommended Posts

@ryan, would you consider adding the ability for PW to split database connections for read and write? I think it will be really useful, especially for high-traffic sites.

Something like this (https://laravel.com/docs/master/database#using-multiple-database-connections) or WordPress HyperDB (https://wordpress.org/plugins/hyperdb/)

Thanks
Rudy

 

  • Like 3

Share this post


Link to post
Share on other sites

@Rudy Did you consider using innoDB tables? Apparently they're better suited for heavy read-write operations (row-level vs. table-level locking). There are a few discussions in the forums with pros and cons of that approach.

  • Like 1

Share this post


Link to post
Share on other sites

@dragan, thanks for replying. We host quite a few PW sites (in the hundreds). They are using AWS Aurora database. I want to take advantage of AWS replicas and being able to separate read and write requests on the database level. 

Yes, we've already using InnoDB for all of our database tables.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...