10712
Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)
yaa database learning like crud and then 1,2,3 nf already those was for sql, i was trying to learn mongo db here first time
Читать полностью…
Only override the defaults if you need to for *some reason*
Читать полностью…
👋 I have a question about MongoDB's _id field. 🤔 As far as I know, it's automatically generated unless we explicitly provide a value during insertOne, right? ✅
I'm building a bot system and need to store Telegram user data. Should I let PyMongo randomly generate the _id, or should I override it with the Telegram user_id? 🤖 Which approach is considered best practice?
I asked Gemini about this, and it gave me two different answers for two different accounts, which is a bit confusing! 😅 So, what do you think is the best way to handle this? 🙏
The server storing that file requires electricity, colling. All requires water
Читать полностью…
Mongodb's website say to pull this
https://hub.docker.com/r/mongodb/mongodb-community-server
But see when i search in google they say official mongo is:
https://hub.docker.com/_/mongo
so in real production or learning what i shold learn and practise? what do you guys say to use which one?
Go to r/stupidquestions and you will fiind your answer there
Читать полностью…
what i will do now ?
i found my fastapi basic app just serve the webpage by itself and do some backend work so i will just run this with a caddy right reverse proxy?
But still the user can know my backend 's vps's ip address i can really not able to stop this so what become good here?
Have you done any databases training or study before doing this?
Читать полностью…
You just clear my confusion, first i thought to store user's telegram's userid in the _id value, now i think to make another key and store the usre_id now i will ok right?
Читать полностью…
Why would you need to override it? Depends on your use case. Normally, you just put shit in another field.
Читать полностью…
I just realized that if I order a pizza with radius z and height a, its volume is exactly pi•zza
Читать полностью…
The better question should be: why is 100, hundred?
Читать полностью…
Take a look at Cloudflare and what they do...
They have extensive documentation
What you will do?
Do the reserch.
See how other web apps deal with this...
It's not like you are inventing the first webapp...
Of course you can send requests without frontend - see the issue in lacking basic knowlege for any of this??
You can never stop it, but you can protect your resources and make it hard for them...
This is where all those words i said before come into play