Best practise/performace for displaying 1000 features
See original GitHub issueHi, I want to draw between 200 and 5000 points on the map. I used two ways. With the first one google chrome stops working
<vl-layer-vector id="sias" v-if="showSias" :z-index="1">
<vl-source-vector :features.sync="sias"></vl-source-vector>
</vl-layer-vector>
The second one seems to work but not quite fast.
<vl-layer-vector id="sias" v-if="showSias" :z-index="1">
<vl-source-vector>
<vl-feature v-for="feature in sias" :key="feature.id">
<vl-geom-point :coordinates="feature.geometry.coordinates"></vl-geom-point>
</vl-feature>
</vl-source-vector>
</vl-layer-vector>
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
6 Tips to Make Your Dashboards More Performant - Tableau
Practice guided analytics. There's no need to fit everything you plan to show in a single view. Compile related views and connect them...
Read more >Tuning Tableau Server: Performance Best Practices - YouTube
The performance of your Tableau Server deployment can make or break your users' experiences and their acceptance of Tableau within your ...
Read more >SQL Performance Best Practices | CockroachDB Docs
Best practices for optimizing SQL performance in CockroachDB. ... by monitoring the performance for different batch sizes (10 rows, 100 rows, 1000 rows)....
Read more >14 Best Practices to Tune BigQuery SQL Performance
#1: LIMIT is a booby trap. Best practice: LIMIT speeds up performance, but doesn't reduce costs. For data exploration, consider using BigQuery's (free)...
Read more >9 Performance Best Practices - Oracle Help Center
9 Performance Best Practices. This topic provides tips for creating efficient data models for better performance. Topics: Know Oracle WebLogic Server ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Even though it’s not documented, clustering is implemented, as can be seen in the demo app. Here’s a snippet from one of my apps:
My experience has been that clustering brought limited performance benefits, so I still use Object.freeze. To trigger re-rendering on feature changes at the Vue level, I use a watcher and increment the
key
variable above.To overcome a similar issue I have used Object.freeze on the feature array to remove the Vue reactivity overhead, allowing successful operation with at least 10,000 features. This will however not work in combination with the .sync modifier.