yufei, you can use renderer to render the whole feature layer, and use featureLayer.setDefinitionExpression(expression) to filter which subset of features will be displayed by their attribute data.
You can set the server behavior to return only 1000 records.
If you need to query the layer based on the attribute data and/or spatial features, having a graphics layer to render the found features can be one way to go.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.