Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8678

Running out of memory with a large cross tab, how to resolve?

$
0
0

Service pack 10 for crystal reports for Visual Studio.

 

I have a database table formatted as a series of variables with timestamps and values, like this:

Name
Time
Value
AT1VA1
AT2VA2
...
BT1VB1
BT2VB2
...

 

I have a very simple crosstab that formats this data like this:

NameT1T2
AVA1VA2
BVB1VB2
...

 

This works fine as long as the number of variables and the number of timestamps is small.  However, the real data has 400 variables, and 14000 timestamps.  There are 5.6 million rows in the database table.

 

When I attempt to generate this, my application calls Export(...) and I can watch the memory consumption grow until it exceeds my process's virtual address space at which time I get an 'out of memory' exception.

 

I am attempting to Export this data to an xlxs file, but changing the destination to csv, text, or window has no effect, still out of memory.

 

It is as if Crystal is attempting to format the entire crosstab result in memory before outputting it.  Is there some way I can get it output my results piecemeal, e.g. a row at a time perhaps, or some other way I can do this without running out of memory?

-nld


Viewing all articles
Browse latest Browse all 8678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>