Page 2 of 2

Relationship

Posted: Mon Mar 14, 2011 5:23 am
by Alex K.
Hello,

As a way, you can set the 'Connect on Start' property to false for unused data sources in this report.

Thank you.

Relationship

Posted: Thu Mar 17, 2011 3:58 pm
by jay@bplogix.com
That works for my "built in" tables. But what if my report designer (user) adds a datasource to a database with a few tables. One of those tables may have a large number of rows (hundreds of thousands). The report designer adds that table but never actually uses the table in the report or in any relationships. Will that entire table be read into memory even if it is not actually used?

If so, then we have to train the end users to "know" how large the tables are before adding them to the report. It would be much easier if Reports just loaded the needed tables into memory automatically. Otherwise if a user is carless and points to a large table that is never even used, it could bring down a server just by running the report! Is there a way to have Reports.Net only pre-cache the tables it needs?

Thanks,
Jay

Relationship

Posted: Thu Mar 17, 2011 6:25 pm
by jay@bplogix.com
Or, is there a way I can loop thru the report definition to see what datasources are actually used in charts, data bands, relationships, etc. I guess then I can just set 'Connect on Start' property to false on the ones that are not used.

thx

Relationship

Posted: Fri Mar 18, 2011 8:48 am
by Ivan
Hello,

[quote="jay"@bplogix.com]Or, is there a way I can loop thru the report definition to see what datasources are actually used in charts, data bands, relationships, etc. I guess then I can just set 'Connect on Start' property to false on the ones that are not used.[/quote]
You can add your own script in the BeginRender event of the report.

Thank you.

Relationship

Posted: Fri Mar 18, 2011 12:48 pm
by jay@bplogix.com
What would this script look for? How would it know what DataSources are used in charts, DataBands, relations, etc.?

Thanks!

Relationship

Posted: Mon Mar 21, 2011 7:21 am
by Alex K.
Hello,

It is impossible to know which data sources are used and what are not. In the script you can, before forming elements (chart, table), only connect to the required ones in this item.

Thank you.