in reply to Re^3: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace
For data heavy applications (especially using databases), you will always have to do a lot of heavy lifting yourself.
As soon as your data goes above a certain threshold for size and/or complexity, a "standard" data handling module (in any programming language) will probably not cut the mustard. Sooner or later you'll end up writing your own SQL statements, throw in some caching and adapt the whole thing to your exact requirements anyway.
For DataTables this is especially true. First of all, the JS part has tons of options and tons of plugins. So, a completely generic backend would have to replicate everything, potentially making it a big mess of spagetti code that moves at the speed of a glacier.
And secondly, if you use paging or scrolling in DataTables, especially in combination with filters and JOINs over multiple tables, this will just not work with some SQL statement thrown together by a generic module. It'll bog down the server and bore the user to death. Scrolling in particular can generate multiple requests per second, so you'd better optimize the heck out of your backend.
Edit: I do have some more or less generic modules for DataTable based listing of any old PostgreSQL table, but it's tightly integrated in my PageCamel framework, so it probably wont be any use to you. But just in case you're interested to see how i did it, it's in the ListAndEdit webserver module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl Contempt in My Workplace
by marto (Cardinal) on May 21, 2021 at 09:45 UTC | |
by vkon (Curate) on May 28, 2021 at 08:12 UTC | |
by hippo (Archbishop) on May 28, 2021 at 09:43 UTC | |
by cavac (Prior) on May 28, 2021 at 10:34 UTC | |
by erix (Prior) on May 28, 2021 at 11:03 UTC | |
| |
| |
by erix (Prior) on May 28, 2021 at 10:53 UTC | |
| |
by marto (Cardinal) on May 28, 2021 at 12:46 UTC | |
by vkon (Curate) on May 29, 2021 at 07:50 UTC | |
by marto (Cardinal) on May 29, 2021 at 10:54 UTC | |
| |
Re^5: Perl Contempt in My Workplace
by vkon (Curate) on May 28, 2021 at 08:00 UTC |