使用 Spring MVC 集成 iReport(没有大量子报表)
我当前的应用程序包含一个功能,即显示前面使用 Spring MVC 在 iReports 4.1.1 中设计的报表,后面使用 PostgreSQL。
现在我更关心它的性能问题。
显示数据的主报表最多有20个子报表。 并且每个子报表都为其运行高成本查询。
那么,当用户数量增加时(简而言之,当应用程序扩展时),出现性能问题的可能性有多大? 如果将来出现任何此类潜在问题,有哪些补救措施?
还有一个天真的疑问:我需要使用 jasperserver 还是直接集成 JRXML(我现在正在做的事情)?无论如何,它会影响性能吗? 提前致谢。!!
My current application includes a functionality of displaying a report designed in iReports 4.1.1 from Spring MVC at front and using PostgreSQL at back.
Now i am more of concerned about its performance issues.
The Main report which will display data has as many as 20 subreports at most.
and each subreport has high cost query running for it.
So what are the chances of having performance issues when the user count increases (in short when application scales)??
And if there is any such potential problem in coming, what are the remedies??
Also one vary naive doubt: do i need to use jasperserver or just integrate the JRXML directly (what i am just doing now)? does it affect performance anyway??
Thanks in advance.!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只使用 JRXML 方法(我宁愿使用预编译的 .JASPER 文件,因为报告文件不需要在服务器运行时编译),所有与 Jasper 相关的内容都在您的应用程序内运行。如果您使用 Jasper Server,那么它将在自己的 Web 应用程序中运行,具体取决于您如何配置和启动 JasperServer。
问题是,我不确定 Spring 是否提供了用于集成 JasperServer 的“即插即用”解决方案,但您仍然可以使用该方法自己编写所有 Jasper 代码。
If you just use the JRXML approach (I'd rather use the pre-compiled .JASPER file, as the report file doesn't need to be compiled at server-runtime), all Jasper-Related stuff is running inside your application. If you are using the Jasper Server then it'll run in it's own webapp, depending on how you configured and started JasperServer.
The thing is, I'm not sure if Spring provides a "plug-and-play" solution for integrating JasperServer, but you still can use the approach to write all the Jasper-Code yourself.