Looking over the documentation for CSVLayerView, I see there is a property maximumNumberOfFeatures:
maximumNumberOfFeatures
NumberSince: ArcGIS API for JavaScript 4.10
The maximum number of features that can be displayed at a time. This setting currently only applies to SceneView. By default, the maximum number of features is estimated automatically depending on the symbology, geometry complexity, memory consumption and display quality profile.
Changing this setting to a higher value may lead to a significant decrease in performance and increase in memory usage.
The way this reads, it only applies to SceneView and not a 2D MapView. I can confirm the JSAPI throws console errors if you attempt to set it. The problem with this is, I believe filter is only scrapping top xyz records. When I apply something similar to:
Snippet
lv.filter = { where: "col_field like '%" + val+ "%'"};...the matching results are unexpectedly low, and it more-or-less matches top xyz in the CSV. Is there a plan to allow the maximumNumberOfFeatures property in a future release? Am I understanding the limitation correctly, and is there a performant workaround? In my usecase, we are filtering as users are typing into an input box...