Which is best method to bind huge number records using RAS.

Hi All ,
i am using CR XI R2 server to create report dynamicaly using sql query.
if follow the below method using DataDefModel.Table and giving table_name the object name in the database (RPT_PROCPLANNEDVSCOMPLETED is the SP in database having 4,00,000 records)., it populates and shows the report in expected time.
CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;
rcDoc.ReportAppServer = "RAS"
rcDoc.New();
crTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo crConnectionInfo;
crConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
crConnectionInfo = GetADOConnectionInfo(); // Connection propery bag set
crTable.ConnectionInfo = crConnectionInfo;
string table_name;
table_name = "RPT_PROCPLANNEDVSCOMPLETED";
crTable.Name = table_name;
crTable.Alias = table_name;
rcDoc.DatabaseController.AddTable(crTable, null);
now i need to pass dynamic sql query instead of giving object name. hence i followed this method
here DSReport1 is dataset i want to bind.
string tempFileName = Server.MapPath("New.xml");
            rcDoc.ReportAppServer = "RAS"
            rcDoc.New();
            DSReport1.WriteXml(tempFileName, XmlWriteMode.WriteSchema);
            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo crConnectionInfo;
            crConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
            ISCRTable table = DataSetConverter.Convert(DSReport1).Tables[0];
            crConnectionInfo = AddDataSourceUsingSchemaFile(rcDoc, tempFileName, "Views", DSReport1);
            table.ConnectionInfo = crConnectionInfo;
            rcDoc.DatabaseController.AddTable(table, null);
CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo AddDataSourceUsingSchemaFile(ReportClientDocument rcDoc, string schema_file_name, string table_name, System.Data.DataSet data)
            PropertyBag crLogonInfo; PropertyBag crAttributes;
            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo crConnectionInfo;
            CrystalDecisions.ReportAppServer.DataDefModel.Table crTable;
            // create logon property
            crLogonInfo = new PropertyBag();
            crLogonInfo["XML File Path"] = schema_file_name;
            // create logon attributes
            crAttributes = new PropertyBag();
            crAttributes["Database DLL"] = "crdb_adoplus.dll";
            crAttributes["QE_DatabaseType"] = "ADO.NET (XML)";
            crAttributes["QE_ServerDescription"] = "NewDataSet";
            crAttributes["QE_SQLDB"] = true;
            crAttributes["QE_LogonProperties"] = crLogonInfo;
            // create connection info
            crConnectionInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
            crConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
            crConnectionInfo.Attributes = crAttributes;
            return crConnectionInfo;
this method is very slow compared to the 1 method. is this the right way of doing, or can anyone suggest better method. i also dont want to create xml file.
Thanks in ADVANCE
Padmanaban V

Hello, Padmanaban;
We do not recommend using ADO.NET for really large datasets. It is too much data to manipulate in memory.
The database is designed to do that and it works very efficiently as you have proven.
For such a large amount of data, use our OLEDB(ADO) driver and logon to the database directly. Make sure the query is run server side and returns only the required data to the report.
Here is an article with some good design tips:
[Click here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/701c069c-271f-2b10-c780-dacbd90b2dd8].
Elaine

Similar Messages

  • How to open a very huge HFR recording using JRMC?

    When trying to open a HUGE JFR recording of size 500 mg using JRMC, it is throwing Out Of Memory error.
    How to open a very huge HFR recording using JRMC?
    Any clues?

    You can try to start mission control by using the command line and defining more memory for the JVM it is running in, for example,
    java -Xms1024m -Xmx1024m -jar <JROCKIT_HOME>/missioncontrol/mc.jar
    Of course you can incease the Xms and Xmx values

  • Which is best method to improve the performance

    Hi,
    I have one scnerio, to meet this requirement i have two methods
    My requirement is to get the data from multiple tables, so i am developing a query based on joins and this query may give approx 80000 rows.
    To meet this requirement i have two methods.
    I have confusion which is the best method to improve the performance.
    Method #1
    for i in <query>
    loop
    end loop;
    Here we are retriving row by row(80000 rows) from data base and applying our logic
    Method #2
    By using the BULKCOLLECT at a time we are getting all the rows(80000 rows) into plsql table.
    then loop is based on plsql table
    for i in 1..plsqltable.count
    loop
    end loop;
    Here we are retriving row by row(80000 rows) from plsql table instead of going to data base.
    Can any body please suggest which is the best to improve the performance

    Using BULK COLLECT will give you better performance with a large data set because there will be reduced IO with this method versus the traditional CURSOR FOR LOOP. Database Admin's (DBAs) typically don't like BULK COLLECT because developers tend to forget to limit the number of rows returned by the BULK COLLECT operation so it could use up too much memory. Take a look at DEVELOPER: PL/SQL Practices On BULK COLLECT By Steven Feuerstein for some great tips on using BULK COLLECT. Another good Feuerstein article is: Bulk Processing with BULK COLLECT and FORALL.
    As others have mentioned, you should have posted your question in the PL/SQL forum. ;)
    Hope this helps,
    Craig...

  • Best method for timestamping? (for later use with perl script)

    What is the best method that I can use to timestamp events in Linux for later use with perl script?
    I am performing some energy measurements.. where I am running several tasks separated by 20 secs in between. Before I start any execution of tasks, I always place initial delay for me to start the script and start the measurement device.
    My problem is that I don't know how long is that first delay exactly. So to solve this, I thought I could use date commands to time stamp all tasks.. or at least to timestamp first dela.
    Here is example of what I am doing:
    1st delay
    task 1
    20s
    task 2
    20s
    task 3..... etc
    What would be the best to use?

    logger.
    It posts messages straight to the system log.  You can see the message, in all its glory using tools like journalctl.  You will see the message, the date, time, host name, user name, and the PID of logger when it ran.

  • CVI what is the best methods in binding graphs

    Hi all
    I have run into a roadblock of sorts. The question is what is the best, most prefered way for binding graph data.
    There are two ways of binding the graph data, one is the use of data sockets binding (easy), and the other is network variable binding(more complex) . I am trying to have only one protocol running for communication preferably network variable due to the systems manager, I would like curve away from the datasocket.
    When binding a networkvariable to the graph, don't you just copy the received data to a buffered writer variable and then bind the graph to that buffered writer?
    What are the benefits of using datasocket over network variables?
    Are there any performance differences between the two?

    Hi Iriddick
    I recommend using network shared variables to bind data to your graph since is a newer and more reliable technology than datasocket, the shared variable engine enables the network shared variables to transmit live measurement data. CVI configures the SVE as a service and launches it at start up.  This article explains the benefits of using network shared variables. 
    regards 
    Chris S.

  • What is the best way to get the delta records using DSS(Data Syncronus Task)?

    This document may be helpful: Incremental Loading with Informatica Cloud. The screenshots are a little out-of-date, but the content should still be useful.

    DSS

  • Which method to count the number of character in a string?

    Hi all,
    I want to know which class and method to count the number of character in a string?
    Gary

    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html

  • Best Method for Strechable .swf file in horizontal but not vertical?

    What is the best method to create an easy to use flash file
    that will allow horizontal scaling with a fixed vertical size?
    This will be for a blog header in a variable width design at
    Make Light Real.com
    I have tried the basic stage properties and found
    StageScaleMode.NO_BORDER to be an ok solution, but I'm not
    sure what will happen when I begin to drop active clips in on the
    stage. Will the stage operate from a fixed point or how will the
    clips orient to the stage as it expands?
    My understanding of actionscript is just enough to hack
    pieces of what I need together: but if you could enlighten me with
    the most basic understanding of which method would work best for me
    I'd apprecate it. I also have this method to alter the background
    (as a clip):
    quote:
    Stage.addListener(ecout);
    // function which replaces all the elements with the new
    values
    slide = function () {
    photo_mc._x = 0;
    photo_mc._y = 0;
    photo_mc._width = Stage.width;
    photo_mc._height = Stage.width/rapp;
    if (photo_mc._height<Stage.height) {
    photo_mc._height = Stage.height;
    photo_mc._width = Stage.height*rapp;
    slide()
    Should I just alter the variables there to lock the stage
    height?
    Thanks for your time in answering.

    When you export your movie you can select the scaling options
    for width and height.
    Try selecting one but not the other.
    Cheers,
    Gorka
    http://www.AquiGorka.com/blog

  • CBR vs VBR which is best

    I realize there have been alot of postings (mainly mine) on this subject but........
    Which is best and under what circumstances would you use these. I have been reading about this and it still is'nt clear. I have vers. 2 on my desktop and 2.1 on my laptop. All answers I have suggested that CBR is best, but is this all the time?
    Jeff
    G4 DP 1 GIG G4 laptop 1.25, MBP 2.0 1 GIG   Mac OS X (10.4.6)  

    Jeff:
    My two cents . . .
    I'm using Compressor 2.0. With the standard VBR presets I use to get some pixelation in particular in transitions. That's solved using same preset changing just to CBR setting.
    My projects uses to be short and then a bigger m2v ile size is not a problem for me.
    Someone using 2.1 could tell us if the VBR problems have been solved.
    Hope it helps !
      Alberto

  • How to check which is th best method to use in LSMw and the file

    Hi all,
    I am new to LSMW,
    Can know me when i get the file , how to check the which is the Best method ( Batch input, Direct input,BAPI, IDOC)  have to use in LSMW .
    How to check the input file is completely filled and how to check whether it is correct and also how to Prevalidation check has to be done fior the file before uploading.
    Can you provide any documents LSMW also Apprecited.
    Regards,
    Madhavi

    Hi Madhavi,
    To check Correctness & completeness of the file:
    1. The input file structure should be same as source structure what you defined whicle creating LSMW.
    2. Check the following steps to assure the field mapping is done correctly.
    a) Maintain field mapping & conversion rule
    b) Check 'Display Read data'
    c) Check ' Display Converted data''
    Please note LSMW is a tool, which will simply upload the data whatever you are providing. So you need to be careful while making your file and validate it outside SAP ( before upload start)
    Pradeep D

  • How do I delete a huge number of duplicate albums from my itunes for mac library?

    I have a huge itunes music library, over 900 GB, and as it turns out I have a huge number of duplicate albums.  Is there a way to automatically get rid of the duplicate albums so I am left with only one of each?  If not, what is the best way to identify and remove my library's duplicate albums?  Thanks!
    Cheers,
    Gerry

    iTunes does not have any automated way of deleting duplicates.
    You can identify the duplicates by
    View > Show Duplicates
    or
    Alt + View > Show exact Duplicates
    (or if you are on windows Shift+ View > Show Exact duplicates
    There is a third party tol which is free to download and then register. Although the copy I tried worked fine as a trial download
    Tune Sweeper

  • When bouncing- what's best method for smallest file size/highest quality?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality? And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's. I basically need them to be about 3 mb each. Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    If anyone can help I would really appreciate it. Please be detailed in your response, because I am new to logic and I really need the step by step.
    Thank you...

    MUYconfundido wrote:
    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality?
    The highest bitrate that falls within your limits. You'll have to calculate how big your MP3's can be, then choose the bitrate that keeps the size within your limit. The formula is simple: bitrate is the number of kilobits per second, so a 46 second stereo file at 96 kbps would be 96 x 46 = 4416 kbits / 8* = 552 kBytes or 0.552 MB. (*8 bits = 1 Byte)
    So if you know the length of your tracks you can calculate what bitrate you need to keep it within 10 MB total.
    I consider 128 kbps the lowest bearable bitrate for popsongs and other modern drumkit based music. Deterioration of sound quality is often directly related to the quality of the initial mix and the type of instruments used in it. Piano(-like) tones tend to sound watery pretty quickly at lower bitrates, as do crash and ride cymbals. But don't take my word for it, try it out.
    And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    You can only ZIP the whole thing after that, but that is just for transport. You'll have to unzip it again to use it. And no, you cannot compress an MP3 any further and still play it.
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's.
    That is silly, you could have done that in Logic, which has one of the best MP3 encoders built in. And how good encoders are will especially come out at bitrates around or below 128, which you might be looking at.
    I basically need them to be about 3 mb each.
    So, one more scrap of info we need here: how long are those three pieces, exactly? I'll calculate the bitrate for you - but please bounce 'm directly out of Logic as MP3's. They will very probably sound better than your WAV-conversions made with Switch.
    !http://farm5.static.flickr.com/4084/4996323899_071398b89a.jpg!
    Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    Length of the piece? And does the .Wav bounce you have sound OK?

  • Best method for flv playback in flash 8

    group,
    i am currently trying to get to grips with flv playback with
    flash 8. i have come across a number of methods for flv playback
    within flash 8 and am curious to know the difference between
    methods and ultimately if there is such a difference discover which
    is best. I have had a few issues with some methods and was
    wondering if it was because that method sucks.
    In particular i am looking for the best method for allowing
    custom skinning of the player with the ability to have a player
    somewhere on stage without it being stapled to the darn flv file.
    METHOD1:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    theVideo.attachVideo(ns);
    ns.play("testmovie.flv");
    METHOD2:
    import mx.video.*;
    this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
    {_width:360,_height:240,x:0, y:0});
    my_FLVPlybk.skin = "SteelExternalAll.swf"
    my_FLVPlybk.contentPath = "testmovie.flv";
    my_FLVPlybk.autoSize=true;
    my_FLVPlybk.autoPlay=false;
    what are the differences??
    any help would be much appreciated. Thanks for your time and
    expertises,
    Flash fan.

    Adobe has announced that it has ceased development of Flash for mobile phones (in favour of HTML5, and due to the opposition of both Apple and Microsoft to allow support of Flash for their mobile operating systems), so from that direction neither Microsoft nor Nokia is going to get any help.
    If the Adobe Flash Video format specification is publicly available to use or to license (I don't know if it is), then at least Microsoft could implement support for it, if they wanted to (Nokia might not have sufficient rights from Microsoft to add new codecs to Windows Phone).
    So, you might direct your question primarily to Microsoft, rather than Nokia (of course, a Microsoft representative will probably read this, too, but whether they'll response or not is another matter).

  • Best method for networking with ubuntu linux

    Hi,
    I'm setting up an ubuntu linux fileserver, and I was wondering what the best method for filesharing with my mac is. I'm currently running osx 10.4.11, though I may be upgrading to 10.5 soon. I'll be running SMB networking for a couple of other computers, but I'd prefer something a bit more robust that can handle file permissions etc.

    Mac OS X supports NSF out of the box. Configuration isn't documented.
    I recall Apple got rid of net info manager in Leopard, so the configuration will be different. Perhaps more unix like.
    Mac OS X support the Unix Network File System (NFS). However, it leaves out
    the GUI.
    This page show you how to use NetInfo Manager:
    http://mactechnotes.blogspot.com/2005/09/mac-os-x-as-nfs-server.html#c1168221713 40271068
    NFS Manager can both setup NFS shares and connect to NFS shares.
    http://www.bresink.com/osx/NFSManager.html
    Once you figure out how NFS Manager configures the NFS shares, you can
    use Applications > Utilities > NetInfo Manager to create more shares.
    You will either have to coordinate Unix Userid number and Unix Group Id number or use the mapall option on the share.
    To find out your Mac OS X userid and group id do:
    applications > utilities > terminal
    ls -ln
    ls -l
    # lists the NFS share on your mac
    showmount -e localhost
    #list NFS shares on a remote host
    showmount -e remote-ip-address
    Once you see what NFS Manager does, you will be able to use NetInfo Manager to manage a connection. In Mac OS 10.4 you can configure the /etc/exports control file. See man exports for the details. Before that you had to have the data in NetInfo manager. When Mac OS X came out, many common Unix control files were not present. Instead the data had to be in NetInfo manager. Over time Apple has added more and more standard Unix control files.
    ======
    You do know about the need to match userids & groupids.
    # display uid and gid
    ls -ln
    sudo find / -user short-user-name -exec ls '-l' {} \;
    # on Mac OS X
    you will need to go into NetInfo Manager and select user and find your short-user-name. Change uid and guid.
    #on Linux look in
    /etc/passwd
    /etc/group
    # with care...
    # change 1000:20 to your values for uid:gid
    sudo find / -user short-user-name -exec chown 1000:20 {} \;
    The manual for Tenon MachTen UNIX (which Apple checked when doing Mac OS
    X) says that one should crate the file /etc/exports, which will cause
    portmap, mountd and nsfd to launch at startup via the /etc/rc file. The
    file must not contain any blank lines or comments, and each line has the
    syntax
    directory -option[, option] hostlist
    where 'directory is the pathname of the directory that can be exported,
    and 'hostlist' is a space separated list of hostnames that can access the
    directory. For example
    /usr -ro foo bar
    /etc
    /Applications
    /User/gladys gladys
    The client the uses a command like
    /sbin/mount -t type [-rw] -o [options] server:directory mount_point
    where 'type' is 'nfs', 'server' the name of the server, 'directory' the
    server directory mounted, and 'mount_point' the client mount point. See
    'man mount' for details.
    I haven't tried the above, but it would be nice to know if it works on Mac OS X.
    Hans Aberg
    This will give you some hints on NFS. Post back your questions.
    Robert

  • How can i organize a huge number of events?

    I just began with mac and iphoto. I imported a lot of photos from windows (google picasa) in iphoto (>17000). Now I have a huge number of events, which i would like to sort by e.g. years and months. Within the years and months, the events should be placed.
    Is this possible or what would you suggest to handle a lot of photos?
    Thank you in advance for any helpful answer.
    Alumsch

    alumsch wrote:
    I just began with mac and iphoto. I imported a lot of photos from windows (google picasa) in iphoto (>17000). Now I have a huge number of events, which i would like to sort by e.g. years and months. Within the years and months, the events should be placed.
    Is this possible or what would you suggest to handle a lot of photos?
    Thank you in advance for any helpful answer.
    Alumsch
    Assuming that you have events sorted by date (event menu ==> sort events) your events will be sorted by date & time - you can not create a substructure within events - it is a large flat set of photos
    If you want a hierarchal structure use albums and folders - albums hold photos and folders hold albums or other folders - you also can use smart albums to instantly find all photos from a date or a date range - or the search window in the lower left
    Events a a very basic, inflexible and pretty much automatic organization - just a starting point to hold photos
    I generally merge trips into a single event and leave the other time based - others merge even more having events like 1st quarter 2010 etc
    LN

Maybe you are looking for

  • How to create a triangle view with a select query?

    I need help to build a select query that will create a triangle view. Below is the table I have to query *{color:#ff0000}INITIAL TABLE{color}* *{color:#008000}AMOUNT | TRANSACTION_DATE | OPEN_DATE | TYPE{color}* 5 | 30-JAN-09 | 10-JAN-09 | A 10 | 12-

  • Need urgent help with RAID failure on Graphics server (running OSX10)

    Hey. Here's the deal... Our graphics department has a MAC G4 (fully upgraded. newest patches, OS, etc.) that's got a 4 port SATA RAID controller. They use this with four 750GB hard drives as an external RAID (the OS is on a seperate, 65GB hard drive)

  • BDC Questions

    Hi Can you give answers for these questions? 1)What are the transactions we should use in BDC? How do we use it? 2)How would you use BDC program to transfer material master record using MM01 transaction? Give me steps. 3)Could we use ME21N transactio

  • Problem in customer replication from ECC to CRM

    Hi experts, When I create a customer in ECC using Tcode XD01 a BDOC is created in CRM. But this Bdoc shows following errors:--      Partner (): the following errors occurred      Incorrect input data:      Validation error occurred: Module CRM_BUPA_M

  • PDF generation , FOP and Oracle Express DB

    Am I right in assuming that you can't use the FOP PDF generation utility with Oracle Express Edition Database? i.e. no oc4j directory etc.. regards Paul P