Guest Customer Problem on M1 Mac while Connecting Iphone

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
2 years ago
Video Url:  https://youtu.be/xdwfPdN0JjU

Hi.
As we know, Mac computers connect with other apple devices (eg: iphone) defined in the background.
For example, when we open the "notes" application on a mac, it connects with other apple devices in the background and exchange data between these devices.
When we make a change in such applications, there are also changes in other devices at the same time. In other words, we can say that a connection protocol is applied in the background.

When such a connection is provided, if the project is running, the guest customer is constantly created. For example, when I ran the notes application, 90 pages of guest customers were created.

For example, you can see the video below. When I close the Notes application (ie when the apple connection protocol is disabled), the processes (this processes create guest customers) are terminated.

Ide: Jetbrains Rider
Platform: MacOs - M1 Macbook

Customer list after these processes are done:
Picture Url: https://ibb.co/cNK86Lx


Customer Table:
Picture Url: https://imgbb.com/FY0VNm3
2 years ago
Nopcommerce Version: 4.50.1
2 years ago
Update:

This bug is not only during development, but also when visiting a live site.

For example, when I visit the "https://admin-demo.nopcommerce.com/" and open the "notes application", a guest users are creating.
2 years ago
I don't quite understand what is the problem here. Are guest records created when you run your nopCommerce project and one of applications at the same time on a Mac? And how does this relate to our demo site (https://admin-demo.nopcommerce.com/), where guests are created?
2 years ago
1 - Yes. When the application I mentioned above is opened, pages of guest customers are created within seconds.
2 - When I perform this operation while your demo site is open in the browser, the same situation occurs there.
3 - where guests are created : Admin -> Customers -> Remove custome roles filter and search.
2 years ago
asperagas wrote:
1 - Yes. When the application I mentioned above is opened, pages of guest customers are created within seconds.
2 - When I perform this operation while your demo site is open in the browser, the same situation occurs there.
3 - where guests are created : Admin -> Customers -> Remove custome roles filter and search.



This is by design. And this design has a massive impact on a  busy shop. For 1k con-current customers visit there are 50k query has been executed at the database(including select and insert).

To test the scenario you can use JMeter and SQL profiler.

To investigate more you can start from the GetCurrentCustomerAsync method.

Nop will never move away from this design as the multi-language and multi-currency are heavily dependent on the design and guest checkout as well.

You will see, a lot of DB calls to the Generic Attribute table for validating the discount coupon code. Then there are some action-filters are sent database calls like the
    [SaveIpAddress]
    [SaveLastActivity]
    [SaveLastVisitedPage]

If you want to just stop the guest customer creation then there are already lots of discussions over the forum.

Check the below link. You will get some idea.

https://www.nopcommerce.com/en/boards/topic/37816/suggestion-improvement-on-generating-guest-customer
2 years ago
Scheduled Tasks>Delete Guests is an option.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.