NOP 4.1 Guest User vs Logged User - slower page when you logged?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi! i see strange behaviour. Maybe it's only in our setings, but maybe not.

Version NOP 4.1
Actual behaviour: When we are logged, page with products load much slower (category, newest etc), than when we explore page without logging. Earlier, i was thinking problem is with admin (and feature with "manage this page") but i test it on "normal account" only "registerd user" without admin bar, and it also works slower.

Expected behaviour: guest user and logged user have same experience from fast page loading.

Our settings: we have enabled ACL, because we have created one category where registered users have better prices. We use Nop-templates theme, and few from Fox-net and some "ours - like discount rules etc. like total value cart, or payment module". On category page we have 24 pcs products (only grid), earlier we showed 48 but that's works incredible slow and we reduce it.

How to reproduce: I don't have tools to make benchmarks. I open one window where i'm "guest", and second with private mode where i am logged.

Now. Start open pages. In my case "guest user" have faster loadings webpage. Sometimes i can open 2 pages of category, when "logged user" don't open first yet. Sometimes i click "logged" first, and i swap to guest and click with delayed (open menu, choose)... but guest open page first than first clicked. (after choose category i change window and back to registered user so it's "main window".

Maybe some of you have similar problem? or know how to change it?
5 years ago
Hi,

You can enable the MiniProfiler and find out which actions are slowing down the site.

Go to All Settings and search for miniprofiler.

Regards,
Stoyan
5 years ago
Hi!
i have:
storeinformationsettings.displayminiprofilerforadminonly
and storeinformationsettings.displayminiprofilerinpublicstore

I should add new value Miniprofiler? or change in one of those from false to true?


Can you tell me where can i found raport / log from this? And after change value i should restart application?

Sorry for newbie questions :)
5 years ago
Ok. I see. Well… we check and in first load, when we go on (main category) catalog category we have 31691 request :/ is it normal?


There are html widgets / Anywhere SLiders (and 113 duplicate calls are detected, sql 3.9%).



When we move on homepage (i be there earlier) sql = 79,9%

https://.../Admin/Product/Edit/24... 
4375.0
4773.5
+0.0
3633.8 (577)
MiniProfiler Prep
96.0
96.0
+0.0
13.3 (5)
Controller: Product.Edit
235.1
235.1
+101.3
163.3 (46!)
ViewComponent: AdminWidget
5.3
5.3
+357.1

ViewComponent: SettingMode
5.3
5.3
+376.1
4.0 (2)
ViewComponent: AdminWidget
3.5
3.5
+1722.6

ViewComponent: AdminWidget
2.5
2.5
+1726.2

ViewComponent: AdminWidget
10.6
10.6
+3193.0

ViewComponent: AdminWidget
2.0
2.0
+3260.3

ViewComponent: AdminWidget
5.4
5.4
+4260.8

ViewComponent: AdminWidget
3.3
3.8
+4291.4


sql:
79.9 %



Second open = less requests.

.../NopAjaxCart/GetAjaxCa...
12.6
252.4
+0.0

Controller: NopAjaxCart.GetAjaxCartButtonsAja...
239.1
239.1
+5.8
206.4 (21!)

sql:
81.8 %


In guest idon't have possibility to looks on it. I checked only on admin logged user. Is it normal?
5 years ago
Hi,

Set "storeinformationsettings.displayminiprofilerforadminonly" to false and you will see the profiler with a guest account.

Regards,
Stoyan
5 years ago
Nop-Templates.com wrote:
Hi,

Set "storeinformationsettings.displayminiprofilerforadminonly" to false and you will see the profiler with a guest account.

Regards,
Stoyan


Ok i make few prnt scrreens.
Admin
https://pasteboard.co/I410uu8.jpg

https://pasteboard.co/I410KUa.jpg

https://pasteboard.co/I4115v0.jpg

https://pasteboard.co/I411gCl.jpg

GUEST
https://pasteboard.co/I411vC1.jpg

https://pasteboard.co/I411GQl.jpg

https://pasteboard.co/I411VjR.jpg

https://pasteboard.co/I4126sk.jpg

Don't know, how to make it more clear ;]
5 years ago
Hi,

You should double check if your discount rules are not causing these problems. You can click on the number of requests in the SQL row in the MiniProfiler and see what is the difference between the requests for the logged user and the guest user.

The product ribbons are making an Ajax Request so it is not slowing the loading of the page.

You can also try to apply the 4.1 EF performance fix: https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx?p=2#215374

Regards,
Stoyan
5 years ago
The biggest difference is with:
a) Not logged user have 5 k request, when logged user have 12-20 k request on the same page…  

I'm afraid can't check this on another shop. All demo have 6-10 products per page… and we can't sign in and compare... how page works. That's why i wrote. Maybe someone can investigate it in more "real envirnoment" than on demo pages.


About discounts - we have 29 - but use only 5... if something is out of date / disabled it's still is used to calculate? But still... page should work wrong with both users type (registered / guest). But in our situation there is big difference…

Edit 2: Hmm maybe i found something, we have discount for logged user on product… (three different 5%,10,15%, 25%...) maybe it's why? "Nop" after sign in, check all this product with all this discount?
5 years ago
Hmmm… i reduce discounts to 13 (3 for registered user, and 7-8 for the guest)... delete all not used role. And make clean… but hmm… it's not change too much... :|
5 years ago
Nop-Templates.com wrote:
Hi,

You should double check if your discount rules are not causing these problems. You can click on the number of requests in the SQL row in the MiniProfiler and see what is the difference between the requests for the logged user and the guest user.

The product ribbons are making an Ajax Request so it is not slowing the loading of the page.

You can also try to apply the 4.1 EF performance fix: https://www.nopcommerce.com/boards/t/54986/nopcommerce-410-high-memory-usage-and-how-weve-handled-it.aspx?p=2#215374

Regards,
Stoyan



Hi Stoyan! this is it! I was thinking my IT guy upload this fix… but he don't do this… Today he make this and problem solved. Page start works ok also when we are logged! Thx!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.