This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-956e6c19-6b59-4c2b-b69a-2731f40b94bc XWIKI-25697 Open

Live Data re-renders every cell when the fetched entries are unchanged

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-87f10e29-89da-468e-9f5d-97f64ce72629 Manuel Leduc created this issue on 09/Nov/26 14:55
 
Summary: Live Data re-renders every cell when the fetched entries are unchanged
Issue Type: cid:jira-generated-image-avatar-956e6c19-6b59-4c2b-b69a-2731f40b94bc Improvement
Affects Versions: 17.10.0
Assignee: Unassigned
Components: Live Data
Created: 09/Nov/26 14:55
Priority: cid:jira-generated-image-static-major-7e8444e9-815f-4ce3-90fa-115cc7b5087a Major
Reporter: Manuel Leduc
Description:

When the Live Data fetches entries, it replaces all the entry objects with new ones, even for the rows that did not change. Vue sees a new entry prop on every row and re-renders every cell and its tooltip, although nothing visible changes.

This happens on every refresh, after an inline edit is saved, for the rows that stay displayed after a filter change, and for a sort that keeps rows on the current page.

Measured on 18.10.0-SNAPSHOT with a Live Data over 300 XObjects, 8 columns, 100 rows per page, production bundle, main-thread time only (server time excluded).

  • Refresh returning the same rows: 0 mounts, 3408 component updates, about 290 ms of main-thread time.
  • Same refresh on the document index with 15 rows: 338 component updates, about 33 ms.

Proposal

  • Keep the entries as non-reactive snapshots (markRaw) in a shallow reactive array.
  • When new entries are fetched, reuse the previous entry object when its id matches and its values are equal, so unchanged rows receive the same prop and are skipped by Vue.
  • Do not make the row index part of the row's reactive render, so rows that only move are not patched.
  • Entries are replaced, never mutated in place: inline edits and drafts go through LiveDataLogic.
 
 

1 update

 
cid:jira-generated-image-avatar-87f10e29-89da-468e-9f5d-97f64ce72629 Changes by Manuel Leduc on 09/Nov/26 14:55
 
Fix Version: 18.10.0-rc-1