-
RDB/IHDB/HDB – What is the best way of a copy of the values of an in-memory table?
Assume I have an RDB (or IHDB / HDB) that has access to a schema called people.
Here is some data you can put on people:
([] sym: `ada`maggie; name: `ada`maggie; age 33 25)
Assume also that I have a function called doSomething that receives the table name as it is argument and performs a series of operations, including an xkey at some point:
doSomething:{[tableName] // blablablah some code r: `sym xkey value tableName; // some more code }
q does not like to perform the xkey directly on value tableName, so the solution I currently have for this is performing a select:
doSomething:{tableName //blablablah some code r: `sym xkey ?[value tableName; (); 0b; ()]; //blablablah some more code }
My question is: is there a better way to get around that or is my solution fine?
Cheers,
Adriano
Log in to reply.