How to avoid round trip to database

i wanted to store all the data in dabase in the form of xml file at the first time.but at the next access i wanted to read the node rather than going to the database.how to acheive it

Leave the node in memory. If this is a standalone GUI or console application, then simply maintain a reference in a cache somewhere to hold onto the data you parsed. If it is in a web application, you could store the result in a cache or in a user's session.
- Saish

Similar Messages

  • Only one round trip to database from BizTalk per message irrespective of number of records in message per table.

    I am creating biztalk application to store the data into sql server.
    and my client says this line what i am not understood .
    "Only one round trip to database from BizTalk per message irrespective of number of records in message per table."
    Any one can help me to understand this line.!
    Thanks,

    One more option is -
    Create a stored procedure to perform batch insert, you can insert into any number of tables you want.
    --sample SP code...just added the steps you need to know to extract XML and perform insert
    CREATE PROCEDURE <SPName>
    @YourXML XML
    AS
    BEGIN
    EXEC sp_xml_preparedocument @idoc OUTPUT, @youXML
    SET @j = 1
                WHILE @j <= @recordCount
                BEGIN
                     SET @xpath = '//ns1:RootNode/Record[' + CAST(@j AS VARCHAR(11)) + ']'
                     ;WITH XMLNAMESPACES('record namespace' as ns0, 'rootnode namespace' as ns1)
         INSERT INTO YourTable
                      (field1, field2....field20)             
                      SELECT                                 
                            field1, field2....field20
                      FROM OPENXML(@idoc, @xpath, 2)
                            WITH(field1 varchar(2), field2 varchar(20)........field20 varchar(100))                        
                      SET @j = @j + 1
                END    
    END
    On BizTalk side its quite simple...generate schema for your stored procedure...and in your map transform your XML to StoredProcedure schema using CDATA.
    Hope it helps!!

  • How do I "round trip" a multi track Audition project with After Effects?

    I'm a complete Audition newb and haven't been able to find an answer for this yet. I would like to make an ajustment in my Audition project and then move over to After Effects to hear it paired with the video. Also my voice over track is not in the mix even though it has signal and when I click into the individual cuts I hear it just fine. The voice over is track 2.

    I'd need to see a little bit more of the Track Panel for Track 2 to know for sure why it's not included in a mixdown, but the likely cause is the Track Output is not set to Master, but instead was set to a specific output channel on your device.
    As for the round-tripping between Au and AE, this process does not appear to be as elegant in After Effects as it is in Premiere Pro.  You'll need to export the mixdown of your multitrack session, overwriting the file After Effects is referencing, the re-link it in AE.  This would be how I'd approach it:
    1. From Audition multitrack, File > Export > Multitrack Mixdown > Entire Session.  Create a file in your AE project folder called Audition Mixdown.wav (for example.  Best to use uncompressed WAV or AIFF formats at this stage.)
    2. Drop this file into your Composition.
    3. Make changes to the mix in Audition and either overwrite the original file, or save a new version.
    4. In After Effects, right-click the file in your Project panel and choose Replace Footage > File... selecting the updated file.
    Since it appears AE loads assets fully into RAM, it doesn't monitor the file on disk for changes and so it doesn't auto-update the asset when it is overwritten by Audition.  In Premiere Pro, where the assets are streamed directly from disk, changes saved to the source asset update in the Premiere timeline almost immediately.  Perhaps this is a potential workflow optimization we can discuss with the After Effects team to improve this workflow.

  • How to avoid round of the value in mapping

    Hi!
    I am trying to pass in mapping value 999999.999, but   XI rounds it to 1000000.
    How can I avoid this?
    I tried to change types of field in Data Type: string, float, same problem.
    Any help appreciated.

    Hi,
    try using this function in message mapping
    FormatNum     
    Converts I according to a pattern that you define using the function properties. The possible patterns are the same as in the Java class java.text.DecimalFormat.
    Regards,
    Kai

  • How to avoid rounding of plotted data?

    Hello
    In my program I have an array of 3 data clusters {XY} to plot. The data of the first two clusters has one precision, and of the third another. For the last cluster I've create second axis, but when I assign last plot to this axis I see rounded data according to first axis increment. I think rounding takes a place when I plot all data with the first active axis. How can I avoid this rounding and keep my data precision?

    This could be happening in any of a number of places.  Please post your code (or a fragment or screenshot thereof) and we will try to help you.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to avoid rounding off large Double values?

    For converting from String to Double, consider a piece of code as below:
    String str = "999999999999999.99999";
    Double d = Double.valueOf( str );In this case, d will contain the value 1E15 and not 999999999999999.99999.
    Is there any way by which we can avoid this rounding off?
    TIA,
    Ninad.

    > String str = "999999999999999.99999";Note that you have a total of 20 decimal digits here.
    A double only has 53 bits to represent the mantissa
    so it can only accurately represent about 16 decimal digits.

  • How to minimize Client-Server Round-trip in ADF Faces application ?

    Hi All,
    We have just finished POC on our prototype of ADF Faces + ADF BC application. The POC Emphasizes on Bandwidth requirement.
    After receing the result from the communication provider, including : TCP packets send, Bytes sent from/to server and number of Client-Server Round-Trip.
    There are several part of the application that Must be tuned for the application to run on acceptable performance.
    Here is some page/ function that should be tuned :
    - First page, ADF Read Only Table with two images and some buttons, cause 5 round-trip
    - ADF Dialog Returning Value (as LOV), cause 4 Round-trips
    - On ADF Form, press Commit button, cause 3 Round-trips.
    So the question is :
    1) How to reduce round-trips on ADF Faces application ?
    2) How to minimize the bytes send from / To server on a specific user action ?
    Please give me some recommendation..
    Thank you very much,
    xtanto

    Hi Frank and Steve,
    Thank you for your reply.
    Yes Frank, what I mean by Round-Trip is the traffic between Client and the Server. And Yes, we will use VSAT where the latency is 1 - 1.5 second, so that round-trip matters significantly.
    What I will do is :
    - use minimal skin and No image at all
    - don't use Dialog for LOV because it requires AutoSubmit there.
    - Use 'Apply-Changes' button to do server-side validation before Commit.
    Then do the POC / testing again.
    Thank you,
    xtanto

  • How to avoid server round trip?

    Hi,
    I am customizing UI for emergency contacts(ESS -> personnel info).
    When a value is corrected (changed after an error from server) in a text field and clicks review button nothing happens.
    It seems like I have to make a server round trip for the text value to be updated and be recognized (if I select a value in the other drop-down it makes a round trip and then recognizes the value I entered in the text field.)
    How to avoid this situation? Is there a work around for this?
    Please advise.
    Thanks,
    Dileep

    Dileep,
    Web Dynpro framework carries out round trip for some UI elements(liek table row selection). As per my knowledge this cannot be controlled or mdofied.
    Regards,
    Ganga

  • Re: (forte-users) Round-trip database design

    We have used Erwin quite sucessfully, but it's not cheap.
    "Rottier, Pascal" <Rottier.Pascalpmintl.ch> on 02/15/2001 04:51:01 AM
    To: 'Forte Users' <forte-userslists.xpedior.com>
    cc:
    Subject: (forte-users) Round-trip database design
    Hi,
    Maybe not 100% the right mailing list but it's worth a try.
    Does anyone use tools to automatically update the structure of an existing
    database?
    For example, you have a full database model (Power Designer) and you've
    created a script to create all these tables in a new and empty database.
    You've been using this database and filling tables with data for a while.
    Now you want to do some marginal modifications on these tables. Add a
    column, remove a column, rename a column, etc.
    Is there a way to automatically change the database without losing data and
    without having to do it manually (except the manual changes in the (Power
    Designer) model).
    Thanks
    Pascal Rottier
    Atos Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Hello Pascal,
    Forte has classes which might be able to scan the database structure
    (DBColumnDesc,etc.). Express use this classes to determine how the
    BusinessClass looks like. We use Forte to create the tables,indexes and
    constraints. We have the Problem that the above described classes are only
    readable but not fillable. The solution for us will be to create our own
    classes in
    the same manner than existing classes are. So we are able to make updates in
    the database structure and maybe able to change the database tables with tool
    code. Another reason for us to have the database structure in the
    application is the
    ability to see the table structure on which the Forte code works always up
    to date
    with the code. You are always able to compare the structure of the database
    with
    your businessclasses and able to convert a wrong structure to the correct
    structure
    with maybe just a little piece of code.
    Hope this helps
    Joseph Mirwald

  • How to avoid database logon dialog on every action of refreshing reports

    I am using Crystal reports 208 SP2 and has a database connection to oracle database. Connection is esablished and report retrieves desired data, The problem is when ever i open this report ( which has this connection set) and do a refresh,  the report the LogOn dialog pops up.
    How to avoid or save this log on info such that it does not pops up the LogOn dialog when i open the report and do a refresh(F5).?

    Hi Don,
    Thanks for the reply. To try  your suggested approach, i need some clarifications .
    _Problem summary:for refrence, _
    I am following the steps mentioned below to establish a database connection, and fetch the data.
    1) I am using Oracle drivers for configuring the ODBC data source. As part of configuration i will specify the Oracle server name
    2) In crystal reports, Using "Database" menu, i open "Database Expert" dialog and "Make New connection" by specifing the data source mentioned in step 1). During this process, (ODBC)logon information will be filled in. The user ID and password used has all the rights to access the tables in the database. Logon will be successful and connection is established.
    3) Further i use the database table from the "Database Expert" on to the report and refresh(F5) to fetch the data.
    After step 3, I close the report  and reopen it. Now trying to refresh the database logon dialog pops up. I need to avoid this pop up
    Requesting Clarification:;
    1) You have specified "When you connect you have the option to use Trusted Authentication, check this option on". Where is this option. Is it in the crystal reports or is it available during data source configuration. Kindly specify.
    2) Here "Enterprise logon info that has been configured on the Oracle server." implies the oracle database login information right? If yes, this login details are available and i am using this logon information(i.e. UseriD and Password) during database connection.
    If No, Is "Enterprise logon info " is something which should be specifically enabled by DBA in oracle11g configuraion.
    Kindly suggest.
    Edited by: R Guru on Oct 17, 2009 7:32 PM

  • HT4061 It is saying I need to do a restore - I accidentally unplugged during a download - I am scared I will lose my pictures from my recent family trip!!!  Please let me know how to avoid losing these pics.

    I need to do a restore - I accidentally unplugged during a download - I am scared I will lose my pictures from my recent family trip!!!  Please let me know how to avoid losing these pics.

    Hi @imobl,
    You sound like an Apple support guy who hasn't been able to answer my questions.
    To respond to some of the points you made,
    - I did not ignore Ocean20's suggestion. If you has read my post, you would have known that I took my phone to the apple service centre where they tried this restore on THEIR machines. I am assuming that Apple guys know how not to block iTunes. So I actually do not understand your point about me trying the hosts file changes on my machine. Do you not believe that apple tested this issue with the correct settings?
    - you also give a flawed logic of why the issue is a hardware issue. You mentioned that If I thought that the issue was with the software, i should try a restore and getting it to work. The problem is that my error (23), and many others comes up when the restore fails. And you would be astonished to know that not all errors are hardware errors. Sometimes even software errors prevent restores. Funnily enough Apple itself mention that 'in rare cases, error 23 could be hardware related'.
    - all Apple has done so far is replicate the issue. I don not know how anyone can conclude that the issue is a hardware issue.
    And by the way, I am not certain that this is a software bug. Again if you read my Posts, you will notice I only want a confirmation,/proof that the issue is hardware related as they mention..
    Please refrain do. Responding if there is nothing to add.

  • Resolve 9 round-trip: How to break up a clip for different grades on one round-trip

    I am using FCP X-->Resolve 9 round-trip.
    I have one cam angle with several different closeups of different band members. The lighting is different so each close-up needs different grading. However, the shoot was continuous so there is only one clip from this cam. 
    I would like to export multiple segments of the clip to Resolve, for separate grading, and then export back to FCP X, all in one round-trip.
    I first tried blading the clip in FCP X into several segments, with blade cuts between the different closeups. Then I exported XML and imported into Resolve 9. Resolve ignored the blade cuts and only saw one clip, I assume because the different segments retain the same clip name.
    Can I somehow split this clip into multiple segments that Resolve will see a separate "clips" in the same Project, so I can grade each diferently and then send back in one round-trip?
    Or instead must I do multiple grades of the same clip in Resolve and multiple exports back to FCP X?
    There must be a simple way to do this with one round-trip.
    What is the best approach?

    When I look in the Info.plist file for the AppleUSBCDCDriver kext, which is what the driver should be for a USB modem, there are three driver personalities listed: DeviceClass = 2, DeviceProtocol = 0, DeviceSubClass = 0; DeviceClass = 2, DeviceProtocol = 0, DeviceSubClass = 2; DeviceClass = 2, DeviceProtocol = 1, DeviceSubClass = 2. When I look at the info for the Phone with USB Prober, the class, protocol and subclass are all 0 and it is assigned to the AppleUSBComposite driver which appears to be a default when it doesn't know what else to use.
    Does that information come from the phone or is it assigned by the Mac? I'm wondering if the Mac doesn't recognize the phone and is assigning default values, or if the phone is responding with the wrong values causing it not to be assigned to the right driver. Are there other USB utilities out there which could possibly configure the phone's USB port to identify itself correctly?

  • Read data from STATIC internal table during round trip in DO_PREPARE_OUTPUT

    Dear Gurus
    I have a requirement where I need to select some data from the database table BUT_HIER_NODE_D.
    After SELECTING this data to an internal table (say ITAB), I am displaying this data in a table view. I was able to achive this functionality by putting some code in the DO_PREPARE_OUTPUT method.
    Now according to my requirement, after the above data has been displayed on the screen initially, the user will click on any row. After clicking on a particular row, I need to capture the document number on that particular row and need to display all its child document numbers in a separate table. I am able to achive this functionality also.
    Initially I am not sure of how to READ the same internal table (ITAB) again and again by avoiding the SELECT query upon each round trip (between CRM and Web).
    After some research, I understand that I might have to use STATIC internal table to store the data during the
    initial SELECT. This way, upon each round trip, I can READ the data from the same internal table.
    My question: But now, when I tried to create a STATIC internal table in DO_PREPARE_OUTPUT, it is not allowing me to declare this table because DO_PREPARE_OUTPUT method is a INSTANCE method.
    I didn't find any STATIC methods in the IMPL class of the view.
    I would really appreciate if somebody can help me on how to proceed further.
    Thanks
    Raj

    Hi Bharathy / Adil / Masood
    Thank you very much for the replies. I declared a static method inside the IMPL class and I was calling this method inside the DO_PREPARE_OUTPUT method. Looks like it is working fine for me...will comeback if I had any further issues.
    Masood
    As per my requirement, I need to Select the data into the internal table during the very first step, then I need to continuosly read the data from this internal table upon every round trip. So I am not sure if I would be able to use the method DO_INIT_CONTEXT. Because I need a method which will trigger upon each round trip and will also hold the data of this internal table. So right now, the only option for me is DO_PREPARE_OUTPUT method.
    Plz let me know if am doing in the right way.
    Thanks
    Raj

  • PPro cs6 - Audition cs6 - PPro, round trip problem

    I'm having trouble completing the round trip. I got my audio tracks from PPro CS6 to Audition CS6 without problems, right by the manual. But I'm having trouble getting that audio work back  into PPro.
    I'm working a mid-sized project (one hour class, two cameras, etc. headed for DVD). Got edit lock. Everything is done now except for cleaning up audio. After the audio I can send the whole lot to Encore for DVD making. But first, audio.
    Took the entire sequence to Audition  via PPro's  "Edit...Edit in Adobe Audition...Sequence..."  path. This worked just fine. It pushed all the audio files to Audition, Audition opened up and gave me a "make an Audition project" dialog box, etc. Nearly 100 files came over to Audition, on the right tracks, in the right order. Very nice. Made my changes. So far so good.
    What I've read in the manual says that all I have to do when I'm done is "File...Save" in Audition, then PPro will have and use the changes. Sorta like Dynamic Link, but different. So I did the the project save.
    At this point, things deviated a little from the plan. I started up PPro, opened the project, and no sign of the Audition work. Can't find a file anywhere in the project panel that says Audition on it. The files on the timeline are still the dark green of the multi-camera edit, not the lighter green of an Audition file. When I've done this for individual clips, I've gotten back a file with a name like "*Audio Extracted_1.wav" that shows up with the same green as the Audition icon on my desktop.
    So I thought, fine. Not as easy as I had hoped. I'll just have to import it manually. But PPro doesn't seem to have any idea how to deal with a *.sesx file, which is the project file from Audition.
    Should I be exporting, say, a *.wav file from Audition (how?) and import that into PPro? And if I do, is there a good workflow to re-sync this audio with my video tracks?
    I'm confused. Don't know what I did wrong. Don't know what do to fix it. Don't know how to avoid this in the future. So any help gratefully received.
    Bruce Watson

    OK, now I *am* confused.
    Just did it again (a different DVD project however), as described in my original post. This time PPro stayed open for me. So I sent all the sequence audio files to Audition via the "Edit...Edit in Adobe Audition...Sequence..." comman, then did my editing in Audition, and saved it the Audition project. Go back to PPro, and... nothing. No sign of any file from Audition in the project panel. No sign on the time line. No sign of any Audition file anywhere in PPro that I can find.
    What gives? What am I doing wrong?
    What I did get was a folder at the same directory level as my PPro project file, a folder in it with the project_name I gave Auditon when it opened from the PPro  "Edit...Edit in Adobe Audition...Sequence..." command, and then two files for every clip in the project (a *.wav and a *.pkf), and finally two more files, a project_name.xml and a project_name.xml.sesx.
    I suppose I can export a *.wav file to PPro manually. Worked before. But I'd like to learn the "correct" way, the way Adobe intends it to work.
    Darned if I can figure out what I'm doing wrong though. Help???

  • "Round-trip" feature broken!

    all of a sudden after years of trouble-free operation, i started having a problem with round-tripping of my referenced files (most of my library). it happens when using any plug-in or editing with photoshop.
    it seems that as soon as i choose one of the "Edit with..." options and it creates a new version, the new version has no name (blank) or displays "null." the image opens in the editor of choice (e.g., CS3, Nik filter), i make edits, but when i return the preview is not updated and full-screen mode does not show the updated image.
    if i choose to open the image again in CS3, for example, it will show the edited image.
    this problem just started happening out of the blue. here are some recent things that changed on my Macbook Pro:
    1. Upgraded from 10.5.5 to 10.5.6;
    2. Ran the Aperture database re-indexing and permissions check.
    Fortunately, before doing the 10.5.6 update, i performed a backup that i plan to restore and see if this will fix the problem. but i was hoping to avoid this if someone knew what was going on.
    Thanks!
    Darron.

    The round trip feature is back now. I updated iTunes to 5.0.1 today, and that function is available again, but it still doesn't work as the previous version did. Option clicking an arrow in the iTunes music library will perform the specific query I mentioned earlier in the post. Clicking on the arrow from some of the items in my library works intermittently. For example, when I click on Matchbox20 - I am taken to Advanced search page. When I click on Destiny's Child - I am taken to the iTunes Music store page which features all DC albums (this is the proper way it should function). When I click on Whitney Houston's Greatest hits - I am taken to ITMS Whitney Houston page, but not that specific album (which should not be the case). It should just isolate that one album by Whitney. For anyone that has a sizable music collection, this feature of iTunes is invaluable in my opinion. I'm surprised it's not exploited in other software.
    Thanks Apple.

Maybe you are looking for

  • How to create / Insert Leads in CRM On Demand using WSDL in Bpel

    Could any one suggest how to create/insert leads in CRM On Demand through Bpel. Getting following Error <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>Server</code> </part><part name="summary"><summary>Cannot pe

  • Import 1080p h.264 mov to editi with premiere pro?

    i am a nikon d800 user , and i like to use adobe premiere pro to edit the 1080p video clips for sharing with my friends, but the compressed H.264 MOV videos from D800 can not be playbacked or edited smoothly on many editing softwares such as Adobe Pr

  • Can't connect with SFTP and custom port

    I administer a website that recently switched its connection from FTP to SFTP, using port 21001.  I tried to edit the connection profile in Contribute CS4 to SFTP, but don't see where to add the custom port. (Advanced options are for Proxy servers). 

  • Some of my photos were suddenly grey-white belted.

    I have an IMac and I was on vacation and took of course a few photos... Something like a thousand. I copied the Photos from my camera to my IMac. And then everything was fine. I started to arrange them in different folders in iphoto but then there I

  • Navigation between WebDynpro Components

    Hello, maybe this has been asked before, but i do not understand how to get back from component B to component A. I have created several components in one application. One component is needed as starting point of my application (lets say component A)