Yevhenii Hyzyla

Results 12 comments of Yevhenii Hyzyla

I have the same problem. Memory profiler [silk](https://github.com/jazzband/django-silk) gives hint that problem is related with cryptography ```python from silk.profiling.profiler import silk_profile class TerritoryAPIPermission(HasAPIKey): @silk_profile(name='TerritoryAPIPermission.has_permission') def has_permission(self, request: HttpRequest, view: APIView)...

So, one for improving performance of key verification, you can tweak PASSWORD_HASHERS for using different hash method. https://security.stackexchange.com/questions/246062/pbkdf2-usage-will-slow-rest-api-down https://docs.djangoproject.com/en/4.0/ref/settings/#std:setting-PASSWORD_HASHERS

Sorry for the noise, I accidentally pressed "enter" when I started typing the title of the issue

I know that it's not a root of the problem, but I've changed the Postgres version from 14 to 11 and it's worked for me. With psycopg2-binary installed

I will try to fix that issue ✋

> @hyzyla as far as I remember, the timestamp is being formatted on frontend. Can you format it with taking user browser's preferences into consideration? Yes, sure

So, after some investigation, I found that formatting to user locale is challenging, because `dayjs` doesn't support [autodetecting](https://github.com/iamkun/dayjs/issues/732) locale. For that reason, I decided to just change locale to `DD.MM.YYYY`....

> I would suggest getting rid of `dayjs`. We only use it in two places. So, let's create an helper function to parse the server date and convert it into...

@elprans, I also have a similar issue ``` await insert_products_mappings(conn, products_maps) File "/usr/local/lib/python3.7/site-packages/asyncpg/transaction.py", line 89, in __aexit__ await self.__rollback() File "/usr/local/lib/python3.7/site-packages/asyncpg/transaction.py", line 198, in __rollback await self._connection.execute(query) File "/usr/local/lib/python3.7/site-packages/asyncpg/connection.py", line...

Thanks for the article, it was interesting to read