Home › Forums › Legacy Support › Support queries › Other issues › Slow admin – Slow query get user count
- This topic has 26 replies, 4 voices, and was last updated 4 years, 11 months ago by
Anshuman Sahu.
-
AuthorPosts
-
May 15, 2020 at 4:44 pm #259900
soulshakepower
SpectatorMay 15, 2020 at 5:47 pm #259914soulshakepower
SpectatorThis reply has been marked as private.May 16, 2020 at 11:32 am #260082Anshuman Sahu
KeymasterThis reply has been marked as private.May 16, 2020 at 12:09 pm #260094soulshakepower
SpectatorHi Alex, Yes I believe this is clearly a security issue, I was asking for your email for a while to avoid this. Quite strange though as the credentials were only accessible once. Anyway all things cool now, luckily I have strong backups. Can you please let @emism and I know: 1. Where to add your quick fix? (commenting out http calls to vibethemes server?). Is there a way to do it so it remains active even after vibe plugins (manual) update? It didn't fixed all my 504 errors but at least I could use my admin a bit better. 2. My 504 issue is not resolved: Even after your fix, I still had 504 timeouts (admin dashboard, when saving a post, randomly on front-end). Can you keep looking? (Will send new credentials by email). 3. Are you planning to fix/improve the get_user_course_count query? This is clearly a flaw in wplms. Making EVERY page load/request (front and back-end) slower, this should be a priority. Thank youMay 18, 2020 at 1:13 pm #260536Anshuman Sahu
Keymaster1 .Well the main issue with the vibethemes server is in theme. You just have to goto wp-content/themes/wplms/includes/ edit register.php file in it and comment out this line : http://prntscr.com/sj00ow 2 . I cannot take risks , please share credentials of staging site if possible .Send creds at support@vibethemes.com . 3 . Well this " get_user_course_count " query is already optimized and cannot be optimized further otherwise it will give wrong values . Also its a count query which does not put load on the server . The issue maybe connected to your growing database . millions of entries in database makes the queries to be slow as hell.The only option we can do is to create a function and cache the results of it but that means we have to add mecahnism to flush out the cache and recalculate this query which will take time and might lead to bugs.May 18, 2020 at 8:29 pm #260644soulshakepower
SpectatorHi Alex, Thanks for quick reply,- Thanks will do this. But you mentioned the issue was related to requests to your servers, is this google font line related? Otherwise please let me know how I can remove those request too. thanks.
- You have staging site creds at the beginning of this topic, first private post here. Please review my first post with details on debug I did, long story short: - only WPLMS and its plugins enabled = slow admin and 504 errors. - 2020 theme and all my heavy setup enabled (multilingual and a lot of Automattic/Wootheme plugins) = setup light fast..
- I understand bigger db impacts such queries, BUT :
- I manage bigger WP setups, some with 10 languages, +500 orders/week and +500k users, and yet no slow query reported in query monitor. It might see a few on first admin load, but then nada. But your slow query is there and slow all the time!
- If I disable vibe course plugin my setup is Light Fast and no 504 errors! This is why I believe this slow query is making my WPLMS experience a nightmare. Not only for me, but for our collaborators and worst for our students and customers!
May 19, 2020 at 2:29 pm #260897Anshuman Sahu
KeymasterThis reply has been marked as private.May 19, 2020 at 2:37 pm #260904soulshakepower
SpectatorHi Alex,- Cool, glad to know this is included in 3.9.9.
May 20, 2020 at 1:55 pm #261204Anshuman Sahu
KeymasterWell the change for this is in wp-content/plugins/vibe-course-module/includes/bp-course-template.php file . line 290 : changed the query there : http://prntscr.com/skezowMay 21, 2020 at 10:17 am #261495soulshakepower
SpectatorIt worked!!!!!! 2 years struggling with this and going nuts!!! yaaaaaay!!!! I can now access all the admin pages I couldn't anymore, and it loads as it should!! What do you think? To me this (or another way of improving that query) should really be added to future updates. Like i said this was reported by another user and even added in your trello's issues here but archived without fix for some reason. I was desperate, thank you! Let me know what you think. Cheers!May 21, 2020 at 10:37 am #261500fdittmar
Participant@soulshakepower & @alex I hope you folks will post the solution publicly somewhere if you don't encounter any issues with it over the near term. Lots of others here with the slow query... thanksMay 22, 2020 at 1:37 pm #261908Anshuman Sahu
KeymasterWell we will check what could be the consequences of this change and decide whether to make this a change or add a provision (filter) to change this query in future updates . -
AuthorPosts
- The topic ‘Slow admin – Slow query get user count’ is closed to new replies.