My-FyiReporting icon indicating copy to clipboard operation
My-FyiReporting copied to clipboard

[WIP] Fix slow rebuild after data source assignment

Open Copilot opened this issue 6 months ago • 0 comments

Analyzing slow rebuild performance issue when using SetData

  • [x] Explored repository structure and identified key files
  • [x] Identified the performance issue: Rebuild() unnecessarily calls RunGetData() even when data is already cached via SetData()
  • [ ] Implement elegant solution: Add a method to skip RunGetData() when data is already set
  • [ ] Test the changes
  • [ ] Run security checks
Original prompt

This section details on the original issue you should resolve

<issue_title>[Solved inelegantly] Rebuild very slow after a datable is assigned to a dataset in the rdl</issue_title> <issue_description>I wrote this method in a my class; public void SetDataSource(DataTable TableSource, int DataSetPosition) { int Counter = 0;

  	foreach(fyiReporting.RDL.DataSet D in  Viewer.Report.DataSets) {
  		if(Counter == DataSetPosition) {
  			D.SetData(TableSource);
  			break;
  		}
  		Counter++;
  	}
  	//Very Slow
  	Viewer.Rebuild();
  }

but even if in the table there are few records the rebuild is very slow. </issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes majorsilence/My-FyiReporting#183


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot avatar Oct 19 '25 19:10 Copilot