Unix Technical Forum

object creation: client versus server

This is a discussion on object creation: client versus server within the Oracle Database forums, part of the Database Server Software category; --> Hi! I've got to insert lots of spatial objects. They consist of a bunch of attributes plus two VARRAYs. ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 01:56 AM
Volker Hetzer
 
Posts: n/a
Default object creation: client versus server

Hi!
I've got to insert lots of spatial objects. They consist of
a bunch of attributes plus two VARRAYs.
Now, I can insert them two ways:
1) insert into ... values (primarykey,sdo_geom(Attrib1...attribn,INFO_ARRAY( ...),ORD_ARRAY(...)))
2) usersession.createoraobject("MDSYS.SDO_GEOMETRY")
usersession.createoraobject("MDSYS.SDO_ELEM_INFO_A RRAY"
usersession.createoraobject("MDSYS.SDO_ELEM_ORDINA TE_ARRAY"
filling the bunch
and using a bind variable.

Right now, I've got an application that creates the sql string, i.e. method 1.
I'm wondering if method two is faster. On one hand, I can use a prepared
statement, possibly even array binding.
On the other hand, if usersession goes to the database and asks about the structure
of the objects it's supposed to create, it's going to do three selects for
each geometry to insert.

Has anyone tried this and could tell me a hint whether it's worth recoding?

Lots of Greetings and Thanks!
Volker
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com