#πŸ”’ Username caching

9 messages Β· Page 1 of 1 (latest)

unreal copper
#

hello everyone, i'm currently building an api using fastapi. my question is that is it the best pactice to store username and user id in cache?

woven ginkgoBOT
#

@unreal copper

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

robust thicket
#

sounds unnecessary

#

is mapping user id to username a big bottleneck in your api?

unreal copper
robust thicket
unreal copper
# robust thicket isn't that what you want to cache?

i'm trying to make an endpoint that requires to get data from 2 different tables in the same endpoint. i don't know if it's a good practice to use those tables in the same endpoint or if i can store the username and id in the cache so i only need to get from 1 table

woven ginkgoBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.