Writing large amounts of data to MariaDB Database

Certified Senior Developer

Hi,

We have a requirement to write over 50 000 rows daily to our MariaDB database.

I want to know what is the best way to get this done. We tried using a Record Type but the data was too large for it to handle and a breaker cancelled the synchronisation.

I have seen that creating Multiple node instances is not recommended as we will create an excessive connexion pool with the DB.

The only solution that comes to mind is to have a subprocess that gets fed smaller batches (100 or 1000 rows) looping through the data for insertion (sequential).

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    I came to the same conclusion hence the following error

    2022-11-03 15:21:59,404 [ajp-nio-0.0.0.0-8009-exec-444] ERROR com.appiancorp.rest.shared.AppianExceptionMapper - Internal Server Error on REST API invocation.
    com.appiancorp.exceptions.LocalizedAppianRuntimeException$LocalizedAppianException: Expression evaluation error [evaluation ID = 14504:8b784] : The Memory Circuit Breaker prevented this evaluation from completing due to insufficient resources. Please contact your system administrator. (APNX-1-4510-000) (APNX-1-4510-000)

Children