<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Performance issue with big CSV files as data source in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189790#M2592795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short answer is no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A CSV file is really nothing more than an organized text file.  The reason your performance is so bad... You are taking 2 HUGE text files and using a workstation PC &amp;amp; CR to to compare them. The PC isn't designed for that and neither is CR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to improve performance. Download a copy SQL Server Express and load the CSV files into  SQL Server tables. Let SQL Server do the number crunching... Even if you do the whole thing, including SQL Server, on a PC you will experience DRAMATIC increases is speed... In fact it will probably take longer to load than it would to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try using MS Access for similar results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Aug 2010 14:14:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-10T14:14:16Z</dc:date>
    <item>
      <title>Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaq-p/7189789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are creating crystal reports for a large banking corporation with CSV files as data source. For some reports, we need join 2 csv files. The problem we met now is that when the 2 csv files are very large (both &amp;gt;200M), the performance is very bad and it takes an hour or so to refresh the data in Crystal Reports designer. The same case for either CR 11.5 or CR 2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my question is, is there any way to improve performance in such situations? For example, can we create index on the csv files? If you have ever created reports connecting to CSV, your suggestions will be highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 06:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaq-p/7189789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T06:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189790#M2592795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short answer is no. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A CSV file is really nothing more than an organized text file.  The reason your performance is so bad... You are taking 2 HUGE text files and using a workstation PC &amp;amp; CR to to compare them. The PC isn't designed for that and neither is CR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to improve performance. Download a copy SQL Server Express and load the CSV files into  SQL Server tables. Let SQL Server do the number crunching... Even if you do the whole thing, including SQL Server, on a PC you will experience DRAMATIC increases is speed... In fact it will probably take longer to load than it would to process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try using MS Access for similar results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 14:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189790#M2592795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189791#M2592796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Yes, loading so much data from two so large files into memory and join them in memory is too heavy a task for CR designer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CSV files are extracted from the customer's enterprise database and placed in a certain place for Crystal Report's access. &lt;/P&gt;&lt;P&gt;Importing data in the CSV files into another database or MS Access again may solve this problem, and we're also trying to persuade the customer to adopt this way out. The problem with this solution is that the project is to go production, and this solution has to change the entire architect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are also trying to ask the user to view the report from InfoView instead of CR Viewer to take advantage of schedule ability. In the meantime, trying to find some method to decrease the CSV file size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 08:37:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189791#M2592796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T08:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189792#M2592797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a good reason that the files are being generated at all, as opposed to connecting CR directly to the database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 15:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189792#M2592797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189793#M2592798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, security. The customer don't want any vendor to touch their enterprise database, either in test or in production env.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 04:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189793#M2592798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T04:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189794#M2592799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Certainly a reasonable concern...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question at this point is, How are the reports going to be used and deployed once they are in production?&lt;/P&gt;&lt;P&gt;I'd look at it from that direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example... They may be able to dump the data directly to another database on a separate server that would insulate the main enterprise server. This would allow the main server to run the necessary queries during off peak hours and would isolate any reporting activity to a "reporting database".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would also keep the data secure and encrypted (it would continue to enjoy the security provided by an RDBMS). Text &amp;amp; csv files can be copied, emailed, altered &amp;amp; deleted by anyone who sees them. Placing them in encrypted .zip folders prevents them from being read by external applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Hope you liked the sales pitch I wrote for you to give to the client... =^)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all else fails and you're stuck using the csv files, at least see if they can get it all on one file. Joining the 2 files is killing you performance wise... More so than using 1 massive file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 14:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189794#M2592799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T14:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189795#M2592800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In production env the reports are deployed to a BOE system. The users cannot access InfoView directly - instead, they access their portal and views a report via OpenDocument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see 2 approaches from your reply. One is to dump the data from the enterprise db to another one during off peak hours and connect to this db from Crystal Reports, the other is to join  the two large CSV files into one. Are they?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, it seems impossible to persuade the customer to install another db and re-create all reports as the architect will be changed in this way. We are now looking into how to join the two CSV files before CR, and how to split the CSV files into smaller ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 00:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189795#M2592800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-14T00:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189796#M2592801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct about the 2 different approaches... A 3rd approach that shouldn't be overlooked either... Do nothing. If the users are simply accessing cached copies of an executed report, and not executing the report itself, just schedule the thing to run at night. Who cares how long it takes to complete as long as it's available the following morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd just look at dropping the the csv files on the BOE server so that it's not having to pull data across a network while it's processing and then leave it that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a consultant, all you can really do is compile a list of suggestions with their cost estimates along with the associated benefits and short-comings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 14:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189796#M2592801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with big CSV files as data source</title>
      <link>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189797#M2592802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your suggestions and hope to see your great insights on future topics &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; I've marked this thread as solved and awarded points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Ray&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 06:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/performance-issue-with-big-csv-files-as-data-source/qaa-p/7189797#M2592802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T06:38:41Z</dc:date>
    </item>
  </channel>
</rss>

