MalcolmMcDonald
3 years agoQrew Cadet
Best way to lookup related table key fields on import?
I'm regularly importing 5k rows of data into various child tables. The data comes from outside my organization and uses their keys. My parent table uses the default rid as the key field and has all the foreign keys as just plain fields. The foreign keys are a wide mix of numbers or alpha strings or guids etc.
Right now the process I put the data through is to use a pipeline on record create in the child table to search the parent table for a match on the foreign key, return the rid, and update the related field on the child record
As an Example -- my employee, treated like a sales agent by the vendor, has an vendor provided agentid, and an employee ID I provided.
Sale.AgentID Sale.RelatedEmployee -> Employee.RID Employee.VendorsAgentID
ABCD 123 123 ABCD
Pipelines, at that volume, seem to have performance issues - somedays it's several hundred per minute, other days it's 10s a minute.
Is there a better way?
Thanks!
M
------------------------------
Malcolm McDonald
------------------------------
Right now the process I put the data through is to use a pipeline on record create in the child table to search the parent table for a match on the foreign key, return the rid, and update the related field on the child record
As an Example -- my employee, treated like a sales agent by the vendor, has an vendor provided agentid, and an employee ID I provided.
Sale.AgentID Sale.RelatedEmployee -> Employee.RID Employee.VendorsAgentID
ABCD 123 123 ABCD
Pipelines, at that volume, seem to have performance issues - somedays it's several hundred per minute, other days it's 10s a minute.
Is there a better way?
Thanks!
M
------------------------------
Malcolm McDonald
------------------------------