Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Large embed.xhtml/view.xhtml response body #233

Open
lhg-interact opened this issue May 9, 2018 · 4 comments
Open

Large embed.xhtml/view.xhtml response body #233

lhg-interact opened this issue May 9, 2018 · 4 comments

Comments

@lhg-interact
Copy link

We are experiencing slow loadings in our analyzes due to large response body when requesting to embed.xhtml or view.xhtml.

Example of a single cell from grid:
<td id="grid-form:col-1576375587" role="gridcell" class="ui-panelgrid-cell row-hdr-cell ui-widget-header" style="padding-left: 40px;"><span id="grid-form:txt-638737670" title="[Data].[2013].[Q1].[Fevereiro].[4]">4</span></td>
This is too much data for a single cell, which will show a single character as its content.

Our clients access their analyzes over internet, so large data to be trafficked is a big problem.
We have analyzes with sizes over 100MB, which is way too much to be trafficked over internet.
Is there a way to make the response body more compact?
Or make this table structure to be generated by the client?

@ShengtianM
Copy link

You can use “pivotStateManager.getModel().getCellSet()” to get the result data and response the data to the client. Then use client generates the table structure.

@lhg-interact
Copy link
Author

This is not the solution i was expecting. I definitly don't want to build my own client from scratch. I was hoping there is a way to reduce the amount of information in the already implemented client from pivot4j-analytics, without breaking anything. Our clients are already used to this layout and its functionalities, so building a new one is very unlikely.

@mcastillob
Copy link

I'm corrected this problem long ago. mcastillob@e42967c.

@mcastillob
Copy link

"col-" + column.hashCode(); it can be duplicated when there is a lot of data.

change this for Generators.timeBasedGenerator().generate(); .

fix my versión in https://github.com/mcastillob/pivot4j/releases/download/pivot4j-1.0.1/pivot4j-pentaho-1.0-SNAPSHOT-plugin.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants