How can I have intensive stored procedures run on a different machine to where tables are stored?
0
votes
1
answer
30
views
For a home air quality monitoring project I am building, I am collecting sensor readings and storing them on my Synology server, which includes a MariaDB instance.
The Synology is great for managing things like RAID arrays and automated backups, but it doen't have a particularly impressive CPU. I also use it for all sorts of other purposes, so I don't want to burden the CPU too much.
I am also building a web server (actually a Shiny Server ) on an Ubuntu machine to serve a web page of some analytics on top of the data. I want part of these analytics to be calculated on demand by a stored proc. However, I want the stored proc to use the CPU resources of the Ubuntu machine. But I want the data to be managed and backup up by the Synology.
So my plan is to have a DB in the Synology for storing the data, and have another DB with federated tables in the Ubuntu. The stored proc runs on the Ubuntu. The stored proc only reads data from the Synology, transforms it, and returns it to the caller. It doesn't write anything back to the Synology.
Does this seems like a good idea? How would you do it?
Asked by Chechy Levas
(115 rep)
Feb 16, 2019, 05:59 AM
Last activity: Feb 16, 2019, 05:57 PM
Last activity: Feb 16, 2019, 05:57 PM