I am considering migrating an on-prem application database to Cloud SQL for MySQL; however, the application relies on a number of critical MySQL external user-defined functions written in C++ ( invokable via SQL ). Is there support in Cloud SQL for MySQL to effectively import external functions such as these or other possible workarounds? TIA
Solved! Go to Solution.
Unfortunately, Google Cloud SQL for MySQL does not directly support the import of external User-Defined Functions (UDFs) written in C++ or other external programming languages. This limitation is due to several factors:
Alternative Strategies:
Rewrite UDFs in Supported Languages (If Feasible):
External Microservice or Cloud Function:
Restructure Application Logic:
Considerations:
Hybrid Approach: You might combine strategies; rewriting simpler UDFs in supported languages while using external services for more complex ones.
Example:
If a C++ UDF performs advanced text parsing, you could:
Thoroughly assess your specific UDFs and overall application requirements before migrating to Cloud SQL. This limitation might necessitate alternative database solutions if external C++ UDFs are absolutely essential.
Unfortunately, Google Cloud SQL for MySQL does not directly support the import of external User-Defined Functions (UDFs) written in C++ or other external programming languages. This limitation is due to several factors:
Alternative Strategies:
Rewrite UDFs in Supported Languages (If Feasible):
External Microservice or Cloud Function:
Restructure Application Logic:
Considerations:
Hybrid Approach: You might combine strategies; rewriting simpler UDFs in supported languages while using external services for more complex ones.
Example:
If a C++ UDF performs advanced text parsing, you could:
Thoroughly assess your specific UDFs and overall application requirements before migrating to Cloud SQL. This limitation might necessitate alternative database solutions if external C++ UDFs are absolutely essential.
Very much appreciated. We will investigate using Python UDFs as a possible alternative.