Book Image

Data-Centric Applications with Vaadin 8

By : Alejandro Duarte
Book Image

Data-Centric Applications with Vaadin 8

By: Alejandro Duarte

Overview of this book

Vaadin is an open-source Java framework used to build modern user interfaces. Vaadin 8 simplifies application development and improves user experience. The book begins with an overview of the architecture of Vaadin applications and the way you can organize your code in modules.Then it moves to the more advanced topics about advanced topics such as internationalization, authentication, authorization, and database connectivity. The book also teaches you how to implement CRUD views, how to generate printable reports, and how to manage data with lazy loading. By the end of this book you will be able to architect, implement, and deploy stunning Vaadin applications, and have the knowledge to master web development with Vaadin.
Table of Contents (11 chapters)

Generating a report in a background task

Report generation may involve expensive computation due to large amounts of data, connections to external systems, and data processing. In many situations, report data is gathered directly from the original source, typically an SQL database. This has two clear drawbacks. The first problem is that as the application runs, more and more data is added into the database, making reports run slower with time. The second problem is that report generation may heavily use the database at certain times, interfering with the usage of other parts of the application.

One step toward improving this situation is to progressively and continuously generate the data required for reporting. For example, consider the following query that calculates the average on a column:

SELECT AVG(column_name) FROM table_name

Instead of using this query, you can use the...