Is there anyway to split posts to different databases?

that is a good solution, also woocommerce has plugins to create and move the products to custom table. this means instead a new database there is tables just for the products. also very efficient