Not enough reputation to comment ... but what types are you doing? how many of these lines are you updating? Does the table have a primary key? How many columns are in the table and how many of these columns are you updating?
General answer: The JDBC framework in sybase is extremely fast. You could at least consider writing a simple procedure that receives the primary key information (or another) that you use to determine the string, as well as new values ββthat will be updated as input variables. this procedure will update only one row.
Wrap this procedure in your own java method that processes the callablestatement, logs your error number and error message parameters, etc.
Then you can scroll through all the constructs that you are using now to update the data, and use the same java method to call the procedure to update the values ββrow by row.
Again, I donβt know the volume of what you are trying to do ... but I know, if you are trying to do single-line updates, it will be VERY fast.
source share