datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

Custom export takes too long

Open patrikvalentaa opened this issue 5 months ago • 2 comments

Hi @f3l1x, @paveljanda,

Is possible to change method getDataSource() in file Contributte\Datagrid\DataSource\NextrasDataSource.php here visibility from protected to public?

In my case I am doing custom export, because included CSV export takes too long in case large model dependences, so I prepared custom SQL query and now i need to pass argument $userIds, which I get from filtered items from datagrid. For now there is no accessable method to get collection, here is only method getData(), but it returns Nextras Model fetchAll(), that i later iterating for get array of filtered ids. Which also takes too long. Best way for me is public visibility method getDataSource(), where I can call fetchPairs(null, 'id').

Thanx

patrikvalentaa avatar Sep 03 '24 10:09 patrikvalentaa