Hello,

I am continuing work on a Go (golang) driver using the network binary 
protocol.  I currently have *parameterized* SQL queries and commands 
working, such as "select from Cat where name = ?", which I send using the 
REQUEST_COMMAND (41) database operation type.

What is unclear to me is whether I need to do anything from the driver side 
to "prepare" the statement - besides serializing it as an EMBEDDEDMAP with 
the key "params" - I have that part working.  Beyond that, is there is call 
to the OrientDB server that will *prepare* (optimize and cache) the query 
or command on the server side?  I walked through the Java client code with 
a debugger that does parameterized queries and I didn't see any special 
handling besides serializing the params as an EMBEDDEDMAP.


This note from Luca
https://groups.google.com/forum/#!searchin/orient-database/prepared$20statement/orient-database/a8TVNVmas4U/wHL0AktvxyIJ
talks about OrientDB looking up a "cached executor".  Is that on the server 
side or the client side?  My guess is that the OrientDB server will (in the 
future?) handle this transparently - meaning once it sees a parameterized 
query it will prepare and cache it.

Is that right?  Is there anything else special I need to do on the driver 
side to get a parameterized query "prepared"/cached on the server side?

Thanks for your help,
Michael

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to