-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ch100368/performance getfeatures #130
Conversation
…ub.com:CartoDB/web-sdk into feature/ch100368/performance-getfeatures
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carto-frontend/web-sdk/p579u9twf |
@@ -457,13 +464,18 @@ export class Layer extends WithEvents implements StyledLayer { | |||
dimensions.forEach(dimension => this._source.addField(dimension)); | |||
columns.forEach(aggregatedColumn => this._source.addAggregatedColumn(aggregatedColumn)); | |||
|
|||
return this.replaceDeckLayer(); | |||
if (this._source.needsInitialization) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
…:CartoDB/web-sdk into feature/ch100368/performance-getfeatures
@@ -3,9 +3,10 @@ import { Layer, Source } from '@/viz'; | |||
import { Credentials } from '@/auth'; | |||
import { Filter, ColumnFilters, SpatialFilters } from '@/viz/filters/types'; | |||
import { AggregationType } from '@/data/operations/aggregation/'; | |||
import { debounce } from '@/viz/core/utils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Well done!
Please add a note to changelog, like this and merge when you want:
Added
- Better performance in
Layer
, with a debounced approach to DATA_CHANGED event (#130)
Performance: