lundi 22 juillet 2019

Which design pattern is best to use for create/download(in excel) configurable reports in java?

Currently, we are doing different querying (MongoDb) based upon which data we required then creating a model for that particular report and creating a list or map of that model class then creating a workbook excel object. Now querying(fine-tuned query) is giving huge data that huge data need to simplify then putting into a model than creating excel workbook then sending to UI/Mail.

Instead of MVC any other design pattern which we can use for different reports. we have a different type of reports and some report columns are configurable based upon that configurable column and requirement we have to do sorting before putting into workbook object.

MongoDB {Query- to get the data.} simplify the data as per the required columns { which column is required from different tables/collections put into report model } { sorting based upon giving data }

{ creating a workbook object and start put data into that }

it's working but taking to much time I want to refactor the whole code using the design pattern.

Aucun commentaire:

Enregistrer un commentaire