-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] processRowUpdate
- pass the modified row index in the arguments
#16128
Comments
processRowUpdate
- pass the modified row index in the arguments
Hey @TeoAvignon I don't think we can support this, as we only store the relative index and not the index it has on the original array ... i might be mistaken though. I know that @romgrk is advocating to use Map instead of Array as a form of passing the rows to increase DX and performance, but I am not sure how far he has gotten with this yet. what we can provide is the relative index using @MBilalShafi do you have any additional information on this? |
Thanks for your quick response @michaelNXT1 ! For the |
I don't think that we maintain an id->index lookup for this case. We maintain one for rows after sorting, because we need that ordering for rendering purposes, but we don't maintain one for the original dataset as it doesn't make sense for us to do it for everyone just to provide that parameter. I suggest that you create an id->index |
Seems ok to me ! Thanks for responding so quickly. I'll use this solution. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @TeoAvignon How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Summary
Currently, the function arguments are oldRow, newRow, params which only has rowId inside.
If your data is an array, it means updating it will be O(n) while it could be O(1) with the row index.
Could you please also give the row index. Thus, people could choose between the index and the id to update their data based on their current implementation (array or dictionnary)
Examples
Motivation
I would like to improve the performance of my app
Search keywords: processRowUpdate, index
Order ID: #42756
The text was updated successfully, but these errors were encountered: