batch-processing

Guaranteed processing of data in WCF service

点点圈 提交于 2019-12-08 02:41:34
问题 I have a WCF service that processes a feed of tens of thousands of records from SAP. The service call takes an XElement as its main parameter and processes the XML to update records in our database. The current intent is to have the WCF service be called asynchronously, and to have the service call send back to the caller the same document with statuses for each record processed. I'm also looking into ways to multithread the processing of the data, though this may not end up buying me

Tricky MySQL batch query

拜拜、爱过 提交于 2019-12-08 02:20:57
问题 I have a database of events which gets updated every night. A single event has information across three (or more) tables. Recently the volume of updates has caused my MySQL engine to be very slow to the point that my other queries get frozen while new events are being inserted. In order to speed things up I want to make a series of batch queries instead of having to do each one separately which I feel like is a large part of the overhead. The problem is because the data is spread across

Updating multiple records in DynamoDB

杀马特。学长 韩版系。学妹 提交于 2019-12-08 01:38:52
问题 How can i update multiple records in DynamoDB in single query? I have a csv file as an input based on the csv file I have to update multiple records(only one attribute) in the DB. Is there any API available for this? or This can be done using batch processing(Spring-batch)? 回答1: DynamoDB doesn't have batchUpdate API directly. It does have batch get item and batch write item API. However, you can use batchWriteItem API to update the item. 1) Use the below BatchWriteItemSpec class to construct

In batch insert, how to continue inserting other rows when an error occurred in one row

丶灬走出姿态 提交于 2019-12-08 00:14:57
问题 In my code I am doing a batch insert. For an example think that I have five rows to insert, and one of those fails when inserting. Then hibernate prevent inserting all the rows. In my case I want to insert other four records which contains no errors. Is this possible in Hibernate? Following is a simplified version of my code. void save() { Session session1 = HibernateUtil.getSessionFactory().openSession(); Transaction transaction = session1.beginTransaction(); for (int i = 0; i < 5; i++) {

How can I get the value of a registry key using a batch script?

你离开我真会死。 提交于 2019-12-07 23:25:26
问题 I have a batch script like this (which i was able to derive from Open a file in Visual Studio at a specific line number ). Can any one tell me how to to pass the registry key of devenev i.e.( HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe), so that i dont have to give the path as D:\Progra....and that it can be run on any pc with visual studio installed. Thanks in advance. @echo off cd /d D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE devenv

Break up a SQL Server 2008 query into batches

泄露秘密 提交于 2019-12-07 22:44:42
问题 I'm trying to prepare some data for deletion by a 3rd party, and unfortunately they can only process data in batches of 2000 records. I have 100k records and may need to divide-and-export this data several more times, so I'd like to automate the process somehow. Is there a reasonably easy way to do this using SQL Server 2008? I'm not running a complex query -- it's not too far off from SELECT PKID FROM Sometable ORDER BY PKID -- and while I can probably do this using a cursor, I'd like to

How to grab IPV4 variable in CMD and Ping in new CMD window

僤鯓⒐⒋嵵緔 提交于 2019-12-07 21:20:16
问题 So here is the idea, I am trying to grab a variable from Cmd such as IPv4 and be able to ping it in a new window. What would the logic be by running a command and grabbing a specific part of that command and be able to input it as a new vairable in a new command line so it can perform an action. Another example : Find computer name. Run command to a number at the end of the Computer name. I am currently downloading Visual Basics software as it looks like it may be the language i may need but

Google sheets Script to Hide Rows in Batch

回眸只為那壹抹淺笑 提交于 2019-12-07 20:45:12
问题 I'm currently using this script to hide rows containing 0 on col K function Hide() { var s = SpreadsheetApp.getActive() .getSheetByName('Sheet1'); s.getRange('K:K') .getValues() .forEach(function (r, i) { if (r[0] !== '' && r[0].toString() .charAt(0) == 0) s.hideRows(i + 1) }); } Which works perfect, the only thing is that here when I run the script, it hides row by row (now that I have a lot of rows it takes so much time). Is there a way to change it to work in batch? 回答1: Instead of

How to diff .odt files with difftool? kdiff3 diff outputs unreadable characters

*爱你&永不变心* 提交于 2019-12-07 18:16:40
问题 In git I'm trying to use .gitattributes to compare .odt files, libreofice writer files, with difftool. From following this guide: http://www-verimag.imag.fr/~moy/opendocument/ I made a .gitattributes file .gitattributes with this: *.ods diff=odf *.odt diff=odf *.odp diff=odf *.ods difftool=odf *.odt difftool=odf *.odp difftool=odf This made git diff compare the text in .odt, however when git difftool launches kdiff3 to compare the .odt files, I get this pop-up error: Some input characters

Spring Batch with multi tenancy

心已入冬 提交于 2019-12-07 15:24:55
问题 How do we define spring batch jobs to run against multiple tenants? I have setup to run a sequence of jobs in order every night against one database schema currently. All the jobs currently read files from a location and insert to database.The batch configuration was very basic where I defined a data-source, transaction manager and mapped job-repository to it. My jobs will point to this repository and transaction manager. Also I am currently persisting batch meta data information in database.