Watz
01/17/2023, 10:11 AMleft join my_table MT on TL.uniquekey = MT.uniquekey
or
left join my_table MT on TL.id = MT.lineid and T.id = MT.transaction
I'm guessing that Netsuite doesn't index any custom columns. And to get the most performance out of the join, I guess I'd want to use an index to join?
If I were to put the line unique key as the externalId, do you think externalId is indexed?
Would it perform better?
Or maybe Netsuites DB-optimizers create indexes automatically for commonly used joins?
In searches, I need to use the real join to the transaction and then a formula criteria decode({lineunquekey},{mytable.lineuniquekey},1,0) = 1