|
If you show 100 items on the page then that is 40 pages.
Perhaps not out of bounds but certainly close. If you presume that the data will grow at all then your current scheme will not work.
You need to use real paging. Only return 20/100 items, not 4000.
Sander Rossel wrote: browser can't render so much data in under ten seconds
Yep, so that is why you need to really page it.
|
|
|
|
|
The data won't grow all that much, so my current scheme will work at least for the years to come.
I've currently got 8000 items and it still performs really well (except for a lookup, which takes a second to open).
I've found a select module that will handle a lot of the work for me, so I might do this the "will-scale-up-to-infinity" way after all.
That will pose new difficulties, like you're trying to edit data that's not actually loaded yet and may unload when a new page is selected.
Man, I hate paging and the additional work that comes with it
|
|
|
|
|
Sander Rossel wrote: I've currently got 8000 items and it still performs really well
I seriously doubt that it works "really well" for the users that actually need to use the page.
They presumably need to find something on that page and they know what they are looking for. So rather than tell you so you can return just that they must manually scan those 8000 items, one average of course probably at least 4000 lines, to find it.
|
|
|
|
|
... but "WOW!" anyway: Hercules A[^]
It's a composite of visible light from Hubble (the central galaxy, over 1000 times more massive than the Milky Way) and radio data from VLA - the plasma jets are over 1,000,000 light years long.
Hercules A - Wikipedia[^]
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A beginners guide: Welcome To The Tutorial[^] - and judging by many of those I've seen recently in the moderation queue, it's working!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Or we can just point to this CP[^] link.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
I'm not sure if I should take that as a complement or an insult!
So ... do I have to fetch the epees and slap your face with my glove? (Warning: it's pretty solid and has kevlar knuckles)
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I didn't get the question. Must be some cultural thing. But you can take it as a compliment.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
|
Yes, injections are good, especially for the hurt and wounded
|
|
|
|
|
@OriginalGriff has been involved in a fight and won't be able to attend to his CP duties today sadly ...
|
|
|
|
|
Oh, I'm sorry to hear that! Was I badly injured? Did the other guy have a knife?
Where am I? If I'm in hospital, I'd probably like to go and visit me ...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Luckily your recovery was swift, welcome back
|
|
|
|
|
PLease let us know if the sheep survived!
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
I don't know the details, but have observed that Griff's posts are all about violence lately, so things look grim from the sheep's perspective
|
|
|
|
|
I'm not sure what's the more frightening stat:
- There have been almost 3 million downloads[^] of the "is-odd" npm package over the last seven days
- That there is an "is-odd" package
- That there are currently five versions of that package
- That it has a dependency - on the "is-number" package (OK, maybe that one has a small reason for existence)
TTFN - Kent
|
|
|
|
|
Can you test it for me with the number "XXXXII"?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Looks like he's going to need six revisions!
TTFN - Kent
|
|
|
|
|
Are any of the versions correct?
|
|
|
|
|
Well, fail on Roman numerals and certainly overly fancy IMO (OK, maybe just overly dependent on JavaScript idioms). Business end:
return !!(~~i & 1);
Also fails on currency, and with comma as a thousands separator.
I definitely want to build my next mission critical app by downloading random functions that someone might nuke at a moment's pique.
TTFN - Kent
|
|
|
|
|
|
I would think it would only be applicable to whole numbers. Therefore, currency wouldn’t be applicable.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
that's odd!!
I'd rather be phishing!
|
|
|
|
|
No, that's three million! :Tongue In Cheek:
|
|
|
|
|
Without knowing anything more about that, I will assume it's a JavaScript library, right?!
|
|
|
|