为什么每次数据库发生变化时我都需要刷新 Pentaho 报告数据缓存
Why do I need to refresh Pentaho report data cache everytime there is a change in database
如果数据库中确实存在数据,我想显示数据不可用,否则只显示该数据。我在 MySQL 中创建了一个存储过程来实现此目的,并且在 MySQL Workbench 中的 运行 时它工作正常。该过程采用两个输入参数和一个输出参数来显示文本“数据不可用,如果 table.
中没有数据
当我在 Pentaho Report Designer (PRD) 中调用此过程时,它在有数据时显示数据,在没有数据时显示数据不可用文本。但是每次 t运行 从 table 分类数据或在相关 table.
中加载数据时,我都会刷新报告数据缓存
每次数据库发生变化时,如何手动刷新报表缓存?
尝试按照以下方法更改 BA 服务器中的缓存时间。
1) 停止 BA 服务器。
2) 导航到 \biserver-ee\tomcat\webapps\pentaho\WEB-INF\classes
3) 备份文件 ehcache.xml
4) 打开文件 ehcache.xml
5) 向下滚动到内容。
<cache name="report-dataset-cache"
maxElementsInMemory="50"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="1"
timeToLiveSeconds="2"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="1"
/>
6) 减少timeToIdleSeconds、timeToLiveSeconds、diskExpiryThreadIntervalSeconds的值(默认是300秒左右)
7) 保存并重启 BA 服务器。
珠三角变化:
珠三角按照下图更改
在Tools/Options下,您通常可以禁用数据库缓存
如果数据库中确实存在数据,我想显示数据不可用,否则只显示该数据。我在 MySQL 中创建了一个存储过程来实现此目的,并且在 MySQL Workbench 中的 运行 时它工作正常。该过程采用两个输入参数和一个输出参数来显示文本“数据不可用,如果 table.
中没有数据当我在 Pentaho Report Designer (PRD) 中调用此过程时,它在有数据时显示数据,在没有数据时显示数据不可用文本。但是每次 t运行 从 table 分类数据或在相关 table.
中加载数据时,我都会刷新报告数据缓存每次数据库发生变化时,如何手动刷新报表缓存?
尝试按照以下方法更改 BA 服务器中的缓存时间。
1) 停止 BA 服务器。
2) 导航到 \biserver-ee\tomcat\webapps\pentaho\WEB-INF\classes
3) 备份文件 ehcache.xml
4) 打开文件 ehcache.xml
5) 向下滚动到内容。
<cache name="report-dataset-cache"
maxElementsInMemory="50"
eternal="false"
overflowToDisk="false"
timeToIdleSeconds="1"
timeToLiveSeconds="2"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="1"
/>
6) 减少timeToIdleSeconds、timeToLiveSeconds、diskExpiryThreadIntervalSeconds的值(默认是300秒左右)
7) 保存并重启 BA 服务器。
珠三角变化:
珠三角按照下图更改
在Tools/Options下,您通常可以禁用数据库缓存