I think I misunderstood your question. I thought you were thinking that columns.txt was too large to be loaded in one go.
If your columns.txt provides only a list of filenames, it’d be relatively straightforward to load each file in sequence. Just keep enumerating and upserting your table while going through your file list.
If you are looking for a way to enumerate all of the files in the directory, you can just
use the key function to get a list of all the files and use .Q.dd to concatenate the directory
path to the front.
.Q.dd[dir;] each key dir
You can then easily run your function over that list with something like
f:{flip name!(types;“\t”)0:x}
raze f each .Q.dd[d;] each key
Thanks
Mark Rooney
Financial Software Developer
AQUAQ Analytics
On Wednesday, 11 February 2015 08:24:59 UTC, huangyu...@gmail.com wrote:
Hi All,
I wrote a function to read the text and create the table, but I do not know how to batch execution.Can you help me?
I think I misunderstood your question. I thought you were thinking that columns.txt was too large to be loaded in one go.
If your columns.txt provides only a list of filenames, it’d be relatively straightforward to load each file in sequence. Just keep enumerating and upserting your table while going through your file list.