Poor Performance with Client-side FeatureLayer Query

268
2
07-26-2023 01:07 PM
AdamDrackley
Occasional Contributor III

Has anyone else encountered poor performance when performing a simple attribute query against a FeatureLayer object with client-side features?  You'd think that these queries would return results immediately because all the features are already in memory, but I'm finding that a loop which performs an attribute query against a client-side FeatureLayer about 800 times is taking minutes to complete.  I'll try to put together a codepen to illustrate this, but just knowing that I'm not alone in seeing this would be great.

2 Replies
UndralBatsukh
Esri Regular Contributor

 Hi there, 

Can you please provide a reproducible case? Without a repro case, it is impossible to say why.

0 Kudos
AdamDrackley
Occasional Contributor III

Taking another look at my code, this may be because of some very inefficient looping.  Feel free to remove this post.

0 Kudos