Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: TheBishopHi,
I am trying to find a better way of spliting outputs, currently I have
output "outputname1" {
emit *
where outputName == "outputname1"
}
...
output "outputname50" {
emit *
where outputName = "outputname50"
}
which works fine however it does take a very long time to run.
I have tried a two alternatives that I haven't been able to get working
while not(lastInGroup)
{
do output outputName
{
emit *
}
execCount = execCount + 1
}
or
outputName.switch(
"outputname1", do output "outputname1" { emit * },
...
"outputname49", do output "outputname49" { emit * },
do output "outputname50" { emit * })
Is there any way to split the data in 50 or so outputs based the data in the field "outputName"? (The number and names of the outputs are fixed)