primefaces / primefaces/primereact

DataTable sort column slow

Open
#8,317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: Performance
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hi,
I filled a simple DataTable with a small dataset of about 200 rows. Everything works perfectly, but sorting is very slow!
Did that

return (
    <DataTable  scrollable  resizableColumns  scrollHeight="600px"  selectionMode="single"
      style={{ minWidth: "50rem", width: "95%" }}
      value={data}
      size="small"
      header={header}
    >
      <Column style={{ width: "15%" }} field="mtr" header="Id."></Column>
      <Column field="val001" header="Name" sortable></Column>
      <Column field="val002" header="Test col2" sortable></Column>
      <Column field="val003" header="Test col3"></Column>
    </DataTable>
  );

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided DataTable and Column setup with about 200 rows, comparing sorting on the sortable fields with the other columns. Inspect the DataTable sorting entry point and establish a measurable responsive baseline; done means sorting is acceptably responsive for this dataset without changing the reported table behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.