DanielO
01/18/2025, 12:46 AMDanielO
01/18/2025, 1:26 AMdatasources([ConnectionSource.DEFAULT, 'readrep']) )
static mapping = {
datasource 'ALL'
}
Then we call our reporting function to run our reporting queries using the following annotation ie:
import grails.gorm.transactions.Transactional
@Transactional(connection = 'readrep', propagation = Propagation.REQUIRES_NEW)
void getHighlySensitivePersonalDataAndAddToPublicReportBean(User user, PublicReportBean bean)
Local traces show Hibernate referencing the reporting source but all live env tests show queries are being run against the DEFAULT source.tylervz
01/20/2025, 4:18 PMread-rep datasources, or multiple datasources, but for the sake of anybody else who might be able to help you out, what version of Grails are you using?DanielO
01/20/2025, 5:00 PM5.3.0 is the version we're testing on.