<?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: Best Practice for Multi Database Report in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaa-p/10686852#M3897299</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;When you link tables from multiple 'databases', the joins are Not processed on the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CR reads everything from database A's tables and then reads from B's eventually Joining them locally. This, in all likelihood, will slow down things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the options to improve performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Setup a 'dblink' (Oracle) between the two sources and create a View with just the fields you need. Use the View as the datasource for the report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Consolidate the two datasources using tools like BO DataServices/Informatica/Pentaho so that everything is available in a single table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Abhilash &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 20:43:37 GMT</pubDate>
    <dc:creator>abhilash_kumar</dc:creator>
    <dc:date>2014-10-21T20:43:37Z</dc:date>
    <item>
      <title>Best Practice for Multi Database Report</title>
      <link>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaq-p/10686851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully I can explain my issue with clear terminology, but I am fairly new to Crystal Reports so I apologize if this is cloudy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to run a report involving two separate databases on separate servers. One database (we'll call it the information database) gives information about a client while the other database (production database) gives financial production numbers for the salespeople belonging to that client. These two databases can be linked by joining their tables using the salesperson ID field. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My report output needs to show financial production which is grouped by client ID which is grouped by the client's state. This production should be given for the specified date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am able to run two separate reports; one that gives salespeople by client state, and another showing financial production by salesperson for a date range. The production database report is able to sort through 250,000 records and run efficiently in this manner (around 15 - 30 seconds), while the information database can run its report quickly as expected. My issue comes when I combine these two reports in the fashion I mentioned above (financial production by client by state). The report slows to a crawl and is only able to process 500 records per second using my most successful attempt meaning that it takes between 8 to 10 minutes to run the full report. As expected, the total number of records processed grows only slightly from the production database report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have attempted using subreports, reordering links in many different ways, and trying a few other table joining techniques to see if any would speed up the report. What I want to know is, what is the best way to link these two databases that would yield the fastest accurate results?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 20:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaq-p/10686851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-21T20:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for Multi Database Report</title>
      <link>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaa-p/10686852#M3897299</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;When you link tables from multiple 'databases', the joins are Not processed on the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CR reads everything from database A's tables and then reads from B's eventually Joining them locally. This, in all likelihood, will slow down things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the options to improve performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Setup a 'dblink' (Oracle) between the two sources and create a View with just the fields you need. Use the View as the datasource for the report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Consolidate the two datasources using tools like BO DataServices/Informatica/Pentaho so that everything is available in a single table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-Abhilash &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 20:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaa-p/10686852#M3897299</guid>
      <dc:creator>abhilash_kumar</dc:creator>
      <dc:date>2014-10-21T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Best Practice for Multi Database Report</title>
      <link>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaa-p/10686853#M3897300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my opinion, you can just run two SQL commands and join them together via a UNION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 20:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/best-practice-for-multi-database-report/qaa-p/10686853#M3897300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-21T20:56:08Z</dc:date>
    </item>
  </channel>
</rss>

