Refactor database models to majorly increase queries needed and decrease load times of home from 30 secs to 5 sec (we will be caching the rest to decrease even further via background tasks)
This commit is contained in:
parent
f7a9b2f823
commit
86c7eba10a
25 changed files with 1941 additions and 1560 deletions
|
|
@ -1,62 +0,0 @@
|
|||
[
|
||||
{
|
||||
"model": "accounts.customuser",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"password": "pbkdf2_sha256$870000$f99EReOECF2LPne1JHADoy$pr/769omIyRNkDhaojgIIm8kZcAeFiR0DOLcUvbLlk4=",
|
||||
"last_login": "2025-03-13T04:24:11.029Z",
|
||||
"is_superuser": true,
|
||||
"username": "badblocks",
|
||||
"first_name": "",
|
||||
"last_name": "",
|
||||
"email": "rob@badblocks.email",
|
||||
"is_staff": true,
|
||||
"is_active": true,
|
||||
"date_joined": "2025-03-13T04:21:04.553Z",
|
||||
"default_friend_code": 1,
|
||||
"groups": [],
|
||||
"user_permissions": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "accounts.customuser",
|
||||
"pk": 2,
|
||||
"fields": {
|
||||
"password": "pbkdf2_sha256$870000$NxQDOyPzAvM3FgLL5z0SRy$JuET4f8HI55Oy1umkzg6WtjFVpYTt+UfpZWqPff4EO4=",
|
||||
"last_login": "2025-03-13T04:52:57.949Z",
|
||||
"is_superuser": false,
|
||||
"username": "nathanward2016@gmail.com",
|
||||
"first_name": "",
|
||||
"last_name": "",
|
||||
"email": "nathanward2016@gmail.com",
|
||||
"is_staff": false,
|
||||
"is_active": true,
|
||||
"date_joined": "2025-03-13T04:52:28.482Z",
|
||||
"default_friend_code": 2,
|
||||
"groups": [],
|
||||
"user_permissions": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "accounts.friendcode",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"friend_code": "9167-8051-9691-8032",
|
||||
"in_game_name": "badblocks",
|
||||
"user": 1,
|
||||
"created_at": "2025-03-13T04:21:05.166Z",
|
||||
"updated_at": "2025-03-13T04:21:05.166Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "accounts.friendcode",
|
||||
"pk": 2,
|
||||
"fields": {
|
||||
"friend_code": "1234-2938-7848-7636",
|
||||
"in_game_name": "backrolls",
|
||||
"user": 2,
|
||||
"created_at": "2025-03-13T04:52:29.166Z",
|
||||
"updated_at": "2025-03-13T04:52:29.166Z"
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue