J
J
JRazor2015-12-15 16:21:42
Django
JRazor, 2015-12-15 16:21:42

Where is timezone stored?

Hello to all toasters.
I stumbled upon a problem and thought - where to store the user's time zone for the site?
There are a couple of options in my head:
1) In the base, but it's too expensive - constantly climb into the base for them.
2) Use jstz to keep it in Cookie.
3) There will be a base on Redis - you can store it in some hash table.
Where do you store? And why?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2015-12-15
@opium

if you have less than a million users per month, then you can safely store no plugs in the database

V
Vladimir, 2015-12-15
@vintello

timezone is part of the user profile. therefore, uniquely in the database and in relation to the user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question