-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird perf issue for a specific database #86
Comments
I can try later removing various tables? Might be something wacky with a specific table? |
Ahhh, good thinking. Yeah, give that a shot. 😄 |
Ahhh, I think it only has one table. But yeah, maybe try nuking 1/2 the rows, then a different set of rows (etc), or maybe even see if it happens when emptied of all rows. If we can figure out what's causing it, we'll have something to work with. 😄 |
3 seconds or 10? I presume you're talking about simply paging? On my machine / connection (using Chrome) it takes approx 1 second from clicking the 'Down page' button. |
Hmmm, it's taking ~7 seconds or so for me. 😦 And yeah, definitely need to figure out a better approach for the paging arrows. Already have a ToDo list item in the current list for it. Was thinking maybe putting them vertically down the top left side of the table instead. Something like this:
Not sure what to do with the text though (eg |
From my own viewpoint, I think horizontal is better, only because it matches that the table/grid/records are horizontal, and it matches DB4S. I'd just either prefer it left aligned, or central but to the screen width, not the virtual table width. |
Are you logged in or not? If I log in, I can only view 10 records at a time. If I log out, this changes to 25. When viewing 25, there is a 5 to 7 second delay when paging through the records. When viewing 10, this is reduced to 1 second, or 2 tops. or I didn't know changing that was possible? Edit: Aah. |
If I up that to 500 records and view the above database,, DBHub.io 'freezes' - well, its about a minute to page up/down. |
Yeah, but I reckon there's something weird happening anyway. It just seems wrong when it's so much slower than (say) the UK postcode database which is 1.7Mill rows. This one's just a few thousand. I'll take a closer look at it tomorrow after other stuff. I've solved the upload problem in DB4S, at least on Linux (will confirm on Win & OSX shortly), so can take some time looking at it. |
Ohhh, this is interesting in the server logs:
Didn't know that could happen. It's a different database, but something to look into later as well I suppose. |
Its the one you linked to.... the one I've been testing... well, thats and a copy of it... but I was also viewing that one directly. |
I don't think its the number of rows, but the number of columns and the data within those columns. Theres a lot fo data being displayed for each 10 records... Edit: Actually, not a fat lot ... just looks a lot. 20 KB for 10 records, 80 KB for 25 records. |
Oops, you're right. That is the problem database. Guess I'm mentally fuzzier than I realised. 😉 Well, at least that explains why data lookups are always seeming to be slow. They're not getting into Memcache. Investigating that... is not a task for right now for me. "Later" will do. 😄 |
And I couldn't help myself. Looked into it anyway. Raising the maximum size set for individual memcached objects seems to have done the trick. No errors showing on the console when paging through that table, and it's now "normal" speed when compared to the rest. Reading through some Memcached docs, it seems like we'll want to compress objects before sending them to the server, but that's something to investigate at a later date. 😄 |
Interestingly, viewing that database just now is really slow again. Wonder if we have a memory leak somewhere? It's something to investigate later. |
Now fixed. They're not left aligned, but instead the centering now shouldn't go wrong. Moved them out of the table data structure to an independent line below. Seems ok now. 😄 |
Just to throw salt on the fire (??) its going fine for me at the moment. <1 second per page change. |
No worries. 😄 I'm kind of suspecting that the difference might be something to do with my browser/OS combo. Using Firefox on Linux it's dog slow. The other day when it was fast for me, it's possibly I was on my OSX desktop, likely using Opera. I'll check again later. 😄 |
A recently user uploaded public database is being extremely slow to access through the webUI:
https://db4s-beta.dbhub.io/AnsenIO/siren
Even re-viewing columns which should clearly be in Memcached is extremely slow (multiple seconds), as if the database is being pulled from Minio on each request.
Other databases aren't having this problem, so it's not something like a system wide load problem that hasn't been noticed.
The text was updated successfully, but these errors were encountered: