Activities at django

I have two questions:

1) I wonder if it uses

django.contrib.sessions.backends.cache

Does Session Storage Really Improve Website Performance? Assuming about 25 thousand concurrent users. Each user makes many changes to the database (for example, the browser). Is the difference even noticeable?

2) Again, when using a cached session (without db): how to check if a given user is registered (do not allow multiple accounts in one account)?

+3
source share
1 answer

re 1.

. , , db. , - db. - .

db.

. 2.

db , ( , , :))

, , , : , , , (, : <user_id > ) , , , - , .

, / cookie (, SESSION_EXPIRE_AT_BROWSER_CLOSE False - ), cookie.

+5

All Articles