Last modified by Pascal Robert on 2007/09/03 21:02

From version 7.1
edited by Pascal Robert
on 2007/09/03 21:02
Change comment: Migrated to Confluence 4.0
To version 6.1
edited by Pascal Robert
on 2007/09/03 21:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,11 +2,11 @@
2 2  
3 3  == Performance ==
4 4  
5 -[[http:~~/~~/www.codefab.com/wordpress/index.php/2006/02/11/webobjectseof-patch-better-way-to-limit-fetches-with-openbase/>>url:http://www.codefab.com/wordpress/index.php/2006/02/11/webobjectseof-patch-better-way-to-limit-fetches-with-openbase/||shape="rect"]]
5 +[[http://www.codefab.com/wordpress/index.php/2006/02/11/webobjectseof-patch-better-way-to-limit-fetches-with-openbase/]]
6 6  
7 7  == Deadlocks ==
8 8  
9 -When writing high volumes of data over multiple tables from a WebObjects system, it is possible to create a deadlock. OpenBase resolves the deadlock condition by aborting one of the transactions and returning an error to the WebObjects application.
9 +When writing high volumes of data over multiple tables from a WebObjects system, it is possible to create a deadlock. OpenBase resolves the deadlock condition by aborting one of the transactions and returning an error to the WebObjects application.
10 10  
11 11  A possible solution to this problem is to identify the tables to write to immediately after opening a transaction. The necessary SQL would look something like this.
12 12  
... ... @@ -20,7 +20,7 @@
20 20  
21 21  {{/code}}
22 22  
23 -Supplied with LEWOStuff ([[http:~~/~~/www.lindesay.co.nz/>>url:http://www.lindesay.co.nz/||shape="rect"]]) is a framework called JavaOPENBASEJDBCAdaptor. This framework is able to place these locks after each EOF generated transaction is started in order to prevent deadlocks from occuring. You need to copy the framework build product into your local library folder. Under MacOS-X this would be...
23 +Supplied with LEWOStuff ([[http://www.lindesay.co.nz/]]) is a framework called JavaOPENBASEJDBCAdaptor. This framework is able to place these locks after each EOF generated transaction is started in order to prevent deadlocks from occuring. You need to copy the framework build product into your local library folder. Under MacOS-X this would be...
24 24  
25 25  {{code}}
26 26  
... ... @@ -28,8 +28,8 @@
28 28  
29 29  {{/code}}
30 30  
31 -You then need to add this framework to the Frameworks grouping within your X-Code WO project. In your WebObjects "Application" subclass constructor, insert some code of the following form to
32 - get this adaptor to work with your model.
31 +You then need to add this framework to the Frameworks grouping within your X-Code WO project. In your WebObjects "Application" subclass constructor, insert some code of the following form to
32 +get this adaptor to work with your model.
33 33  
34 34  {{code}}
35 35  
... ... @@ -40,7 +40,7 @@
40 40  {{/code}}
41 41  
42 42  This code will locate the framework for the adaptor, load the adaptor as well as set the adaptor in
43 - the model. If you are using SQL logging from EOF, the WRITE TABLE... clauses will be written
44 - to the log as well.
43 +the model. If you are using SQL logging from EOF, the WRITE TABLE... clauses will be written
44 +to the log as well.
45 45  
46 46  There is no need to include the LEWOStuff framework in your project if you are going to use this one.