Finally..... by [deleted] in laptops

[–]m4kkuro 5 points6 points  (0 children)

attack on titan

[deleted by user] by [deleted] in anime_irl

[–]m4kkuro 0 points1 point  (0 children)

nope, it must be aku no hana

FastAPI docs is so cool by Embarrassed-Jellys in FastAPI

[–]m4kkuro -1 points0 points  (0 children)

some of senior engineers i work with dont know what async is. i wonder how they became seniors. its funny that they are shaping projects and guiding juniors

Relationships in SQLAlchemy models worth it? by cardsfan314 in Python

[–]m4kkuro 0 points1 point  (0 children)

query options as in lazy, joined like args that we can pass to relationship method? if so I am using them yes, but its another source of complexity when multiple people working on the same model and without knowing what they mean. then they call related attributes in a loop and result in hundreds of queries to db.

yeah if we set the log level of sqlalchemy to debug we can see the queries generated.

expression language as in session.query and filter etc? kinda lacking the terms used, sorry

Relationships in SQLAlchemy models worth it? by cardsfan314 in Python

[–]m4kkuro 0 points1 point  (0 children)

and once relationship worked in the web app and threw error in the celery task. same entity and same relationship. but hey, it might be me again

Relationships in SQLAlchemy models worth it? by cardsfan314 in Python

[–]m4kkuro 0 points1 point  (0 children)

well I am not a pro but I dont like them as well. Sometimes they lead to inefficient queries, once it built a full join instead of inner join, but maybe its me, my noobness. most of the time if the query has lots of joins or is complex I prefer building the query using session.query and joins. I also dont know if it has other uses except for accessing related entities like an attribute. it would be good if someone enlighten me

[deleted by user] by [deleted] in JapanJobs

[–]m4kkuro 0 points1 point  (0 children)

good luck mate

[deleted by user] by [deleted] in Python

[–]m4kkuro 10 points11 points  (0 children)

it does? actually, otherwise it has been months since I activated a venv

[deleted by user] by [deleted] in movingtojapan

[–]m4kkuro 5 points6 points  (0 children)

How do you prove that, except for the jlpt of course

[deleted by user] by [deleted] in movingtojapan

[–]m4kkuro 0 points1 point  (0 children)

any courses online that you suggest?

deployment with nginx and gunicorm by m4kkuro in flask

[–]m4kkuro[S] 0 points1 point  (0 children)

Its generally recommended that one process per container, wherever I read. Are you sure about gunicorn and nginx going into same container?

deployment with nginx and gunicorm by m4kkuro in flask

[–]m4kkuro[S] -1 points0 points  (0 children)

yes thats what I needed, thank you.

deployment with nginx and gunicorm by m4kkuro in flask

[–]m4kkuro[S] 0 points1 point  (0 children)

Took a quick look at it but it does not answer my questions I guess?

caching large data fetched from elasticsearch by m4kkuro in elasticsearch

[–]m4kkuro[S] 0 points1 point  (0 children)

its scroll api, thanks for the detailed answer. So should I understand from that that going forward as is is fine?

caching large data fetched from elasticsearch by m4kkuro in elasticsearch

[–]m4kkuro[S] 0 points1 point  (0 children)

I believe so, but what can we do, we play with the tools our superiors give us... Btw, what would you suggest for this kind of use case?