Luke Tucker

said
over 1 year ago

Hey Tom,

One solution is to use the Simple Entity Filter component (which filters attributes from an entity) inside of a DataDriver component to iterate through the duffle. The DataDriver currently appends the the new data to the old data, so you'd need to filter that back out before passing it along.

Here I've done that. The DataDriver output selector should be set to "residue" as well as "appendAs". I then use a merge gate to strip out all but the residue.

T

Thomas Lambert

said
over 1 year ago

This is confusing and performance is poor. It takes it 3-4s to give me a response over just a tiny bit of data and I still don't actually have anything populating residue in the output.

Luke Tucker

said
over 1 year ago

I can look into why that's not working, but yes that is a bit slow.

Here is some code from a merge gate with x0 renamed to data and x1 renamed to filterAttributes. Given a duffle in the data port and a list of attributes in the filterAttributes this will do what you need (and it will be fast).