![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm using mimer DB and because of performance problems, I want to do the following: I have the following example table: create table MyTable ( ID INT PRIMARY KEY DEFAULT NEXT_VALUE OF someSequence, -- additional fields... ); I want to fetch all id's of a certain range, but I don't want to return them like regular rows, i.e. one row for each result. Is it possible to write a procedure to collect all the id's and store them into a blog or something and then just perform one return. This way I'll only need one "fetch" from my C code, which fetches all the resulting id's at once. Thankfull for any kind of help or hints. BR //Kid |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thinking of performance and memory usage: Anyone know a way of returning the id's in a blog as binary values. Returning the id's in a varchar is an option, but requires parsing the resulting string and perhaps more memory compared to storing the binary values. BR //Kid |
#6
| |||
| |||
|
|
From the C interface I'm using it takes alot of time to have a regular sql procedure doing a fetch and return (and a fetch in C) for each id. |
|
Varchar is fine. (You can't even convert from integer to binary - that CAST combination is not valid.) /Jarl On Mar 20, 10:34 am, dos.fish... (AT) gmail (DOT) com wrote: Thinking of performance and memory usage: Anyone know a way of returning the id's in a blog as binary values. Returning the id's in a varchar is an option, but requires parsing the resulting string and perhaps more memory compared to storing the binary values. BR //Kid |
#7
| |||
| |||
|
|
Thanks for the info Jarl. Since you seem to work formimerand have some insights into the core of thedb, you might help me with the following: I'm usingmimersqlmobile and want to fetch some id's as mentioned above. From the C interface I'm using it takes alot of time to have a regular sqlprocedure doing a fetch and return (and a fetch in C) for each id. Every fetch from C simply takes too much time considering the amount of id's the procedure could return. Do you have idéas how I could improve this? //Kid On 20 Mar, 13:02, j... (AT) mimer (DOT) com wrote: Varchar is fine. (You can't even convert from integer to binary - that CAST combination is not valid.) /Jarl On Mar 20, 10:34 am, dos.fish... (AT) gmail (DOT) com wrote: Thinking of performance and memory usage: Anyone know a way of returning the id's in a blog as binary values. Returning the id's in a varchar is an option, but requires parsing the resulting string and perhaps more memory compared to storing the binary values. BR //Kid |
![]() |
| Thread Tools | |
| Display Modes | |
| |