Toplink btach update without select ?

My customer must update a table of 50 millions records with new value of column from a flat file.
We decided to use the TopLink BatchUpdate functionality but we noted that it was necessary to read the objects before updating them !
The scenario is following :
1- Read lines of flat file : id + new value of column(s)
2- Construct object and Appply functionnal rules
3- Use TopLink BatchUpdate to update database table
In Toplink we are obliged to add an additional stage:
<<reading of all the objects from the database (50 million) before updating them ! >>
We seriously thinks of rewriting in jdbc with statement.addBatch() and without 50 millions select on database.
I know that CoCoBase also update objects without read them.
you have other solutions ?
Thank you

You can use a DatabaseSession and updateObject to update objects without reading them.
i.e.
// Map the fields being updated in your project, configure login to use parameter batch writing, (ideally configure cache to NoIdentityMap if the objects are simple as well).
DatabaseSession session = MyProject.createDatabaseSession();
while (! fileStream.atEnd()) {
List nextBatchOfObjects = readNext100ObjectsFromFile(fileStream);
session.beginTransaction();
for (Iterator iterator = nextBatchOfObjects.iterator(); iterator.hasNext(); ) {
MyObject object = (MyObject) iterator.next();
session.updateObject(object);
session.commitTransaction();
session.initializeIdentityMap(); // (if not using NoIdentityMap).
You could also use writeObject or even unit of work if you use a does exist policy with something other than checkCache (i.e. assumeExistence()). You could even use registerExistingObject on unit of work, however you must make sure you change the objects from the file data after registration.

Similar Messages

  • How to extend data selection to the existing delta update without disturbin

    Is there any way to extend data selection to the existing delta update with out disturbing the delta mechanism? I mean, is there anyway to add new delta init for the new data selection to the existing delta update without disturbing?

    the scenario is we have existing delta, let's say, for the 2 company codes 0001 and 0002. I want to extract delta for the company code 0003 without disturbing the existing delta mechanism. I mean to say I want to extend the data selection for the existing delta from 2 comp codes (0001, 0002) to 3 company codes (0001,0002 & 0003) without disturbing the delta mechanism.

  • Can I send a text to a "group" contact without selecting each individual member?

    Can I send a text to a "group" contact without selecting each individual member?  I have a group formed in my contacts, but I still have to select each member in that group to send a text or email from my phone.

    There are apps that allow you to address sms messages to groups (such as Speed Names: https://itunes.apple.com/us/app/speed-names-contacts-groups/id285124918?mt=8), but not iMessages.  Perhaps this will change with a future iOS update.
    The only point of having them at the moment is to allow you to limit the view to only contacts belonging to a group, so that you can more easily add the individual members of the group.  But at the present time, you still have to add them individually.

  • Possible to hit enter on table cell & retrieve data without selecting line?

    Hi All,
    We're using ECC6.  I  I have a situation where the user wants to be able to hit a cell in a table which will then fire a report and pass the contents of that cell to the report. 
    So far I have been only able to get this working when the row is highlighted, I can easily pick up the values from the lead selection.  But the user does not want to have to highlight a row every time to run the report.  The user just wants to hit return a cell and for the report to be updated with the value in that cell.
    So, I'm just wondering if it is possible to hit enter in any table cell and retrive the data without highlighting the row?
    Many thanks in advance,
    Liz.

    Hi,
    You want complete row data or perticular cell data??
    Basic q's, without selecting a row how can we get data? without selecting means you get complete data on table,
    In that case which data you have to pass to report?
    Or if you dont want to select data means, create one more field of type button. so in thins button action get that row data
    and call report from here itself.
    Cheers,
    Kris.

  • Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    ''guigs2 [[#answer-672422|said]]''
    <blockquote>
    NoScript stops cookies, please disable this addon/extension as well as make sure that the language en-us is installed.
    # 1) Open up the Firefox Preferences tab. You can do this by typing about:preferences in the URL bar.
    # 2) Click "Content"
    # 3) Next to "Languages", click "Choose"
    # 4) Select "English/United States [en-us]", click "Add"
    # 5) re-open "about:accounts"
    # 6) Click "Get Started"
    </blockquote>
    Thank you for replying. Unfortunately, I already did all of these things. As you can see from the below screenshot, the language is already set. Also, this screenshot was taken in Safe Mode, so NoScript is not enabled. About:accounts still says I need to enable cookies for some reason. So, this solution didn't work....

  • HT1267 i need help updating without wifi hook up. I was told I could do through my "itunes"

    I need help updating without wifi hook up. I was told I could do it through my "itunes"

    after selecting restore from backup, you should see a screen asking you wich backup (on the computer)

  • I can't complete the 5.0 update without choosing icloud, anyone else having this problem?

    I can't complete the 5.0 update without choosing icloud, anyone else having this problem?

    You can't just select "skip"?  It's at the bottom and is in smaller print.

  • A recent Photoshop CC update now selects the wrong video adapter and disables 3d

    My asus laptop has an ivy bridge processor with included HD graphics and an NVIDIA 650M Graphics Adapter.  Until i recently updated Photoshop CC, i was able to do 3d without issue in Photoshop as the 650M has 2 GB of video ram.  Since the update, Phtoshop selects the Intel HD4000 which only has 32 MB of video ram, so 3d is disabled. 
    I've tried the bios, even though all i did was update photoshop, and there is not setting for default.
    I'm running win 7 home premium,8 GB memory

    We have released a new update(14.1.1) for Photoshop CC, please update to the latest and let us know it ot solves your issue.
    See the following thread for more info on the update:
    http://forums.adobe.com/message/5674936#5674936
    Regards
    Pragya

  • Update without permissions, then had to uninstall and re-install browser

    I have Firefox setup to notify me about updates, but not actually update without my say so. Today, Firefox updated itself to v37, crashed, then would not re-open. After several re-starts of my computer I had to uninstall and re-install the browser and now it on update v37. If I wanted it to auto-update I would select the option for that, but I don't.
    The questions are 'why did it update when it's not supposed to' and 'why did it have to be re-installed after it updated itself without permission'.

    When the message about a Firefox update being available comes up, the user has to ''[first]'' see that message, which tends to go behind the main browser window if the user is typing or clicking something at the exact instance that dialog box appears. And ''[2nd]'' say "not now" immediately, otherwise after 30 seconds the download will proceed without waiting for a response. It has been like that since June 2008 when Firefox 3.0 was released.

  • Software update, without a remote

    I have a Bravia 40R510C and no remote.  how do I update without the remote?  Ihave a big notification on my screen that will not go away. 

    Hi bill2089, 
    Welcome to the Sony Community! 
    Please try the physical buttons on the TV, check out the picture and steps below:
    To navigate the menu press either up or down button. Refer to the diagram above.
    Then to Enter / Confirm your selected option press the no. 3 button. 
    NOTE: To update the TV, you need to download the latest software then transfer the update file to your USB Storage Device. For the steps click here.
    If my post answers your question, please mark it as "Accept as Solution"
     

  • How delete on ipad 2 2000 emails without selecting one at a time?

    gow can I delete over 2000 emails from my iPad 2 without selecting them one at a time?

    You can't on the iPad itself, unfortunately. Your best bet is to use your computer to mass delete the emails, You can also change how far back your various email accounts sync messages to your iPad. That will significantly reduce the amount of daily emails on your device.

  • How can I switch from Automatic to Manual update without losing songs?

    I have on my ipod songs from another computer, however I'm afraid to plug it into my computer because my computer is set to automatic update for my ipod. Is there a way for me to switch my ipod to manual update without losing songs on my ipod when plugging it in? thanks.

    Here is what you do:
    Open iTunes.
    Plug in your ipod.
    hold control and shift at the same time. this stops your ipod from updating automatically. Hold this until your ipod is finished docking.
    Then go to edit>preferences>ipod
    then change the setting from update automatically to update manually.

  • Is there a way to do a mass delete of emails without selecting each one of them individually?

    Is there a way to do a mass deleye on the IPhone 4s without selecting each email individually?

    No. You can tap the EDIT button, then tap a bunch of emails to select them, then tap DELETE. But you still have to tap each message.

  • Is there a way to download music from the cloud at one time without selecting each one individualy

    just looking to see if all your songs in the cloud can be downloaded into your device without selecting each one individually

    Hi smokea,
    If you go to More>Purchased>Music>Not on this Phone>All Songs, you will see a Download All button in the top right-hand side of the screen.
    (sorry about the info that was here previously)....
    Cheers,
    GB

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft website I've clicked the options which mean I shouldn't need the CD (which wasn't supplied with the laptop), but poartway through updating the service pack I get a request for the Office 2000 Professional CD.
    Any suggestions?

    Hi
    Did you mean a Office or One Note?
    As far as I know the One Note is a part of the Recovering Image and the CD is not delivered with the unit. Furthermore the Toshiba units are not delivered with the Office 2000 software.
    Nevertheless, did you check the update function in the Help i.e. in Word?
    There you will find a options called Check for Updates
    http://office.microsoft.com/en-us/officeupdate/default.aspx
    Bye

Maybe you are looking for

  • Problem Automatic Workload Repository after upgrage to 10.1.0.4.0

    Hello everybody, We upgraded last week a database 10g from release 10.1.0.3.0 to 10.1.0.4.0. Since this upgrade, the AWR doesn't create any snapshot anymore but the process MMON is still living. I tried to modify the interval of creation (reduce from

  • Sifr and lightbox problem

    hi i use a modal window (thickbox with jquery) on top of some sifr titles. To say it simply: it doesn't work in safari 3! Has anyone solved the problem? Thanks vitto

  • HT4906 photo stream without iphoto

    I am wanting to use Photostream to see my pictures in all my devices but I don't want to use Iphoto, since it is clunky and not useful. Is there any other program with which I can use photostream? Can I use photostream directly uploading my select fo

  • Notification to persons after reaching the expiry date of probation

    Hi all, I need to send mail to administrator regarding the expiry of probation.so i have maintained the infotype 0019. Also i have created the Administrator group and the administrator and i have assigned it in the IT0001.i have written the Dynamic A

  • Is there a way to export layers as files with out all the extra numbers in the prefix?

    Hi everyone I've officially spent 8 hours researching this topic and I can't seem to get anywhere... i want to export a bunch of layers to files. I know about the layers to file script, that's not what I'm asking. I'm asking how to get rid of the "00