I cannot understand the Oracle documentation. :-(
Does anybody have any pointers to an example how to fetch multiple rows of simple data from Oracle via OCI?
I currently use OCIDefineByPos to define single variables (I only need to do this for simple integers -- SQLT_INT/4-byte ints) and then fetch a single row at a time with OCIStmtExecute/OCIStmtFetch2. This is ok for small amounts of data but it takes around .5ms per row so when reading a few ten thousand rows this is too slow.
I just don't understand the documentation for OCIBindArrayOfStruct etc. and cannot find any example code that just fetches data a few thousand rows at a time.