Answer the question
In order to leave comments, you need to log in
Can a dictionary be used instead of a full database?
Hello. I am making a telegram bot in python for registering and recording clients (and this is not particularly important), there is also another bot, a game one. The database in the game bot is made using a dictionary , and the Json library saves it to a .json file , and also receives the database from it back to the dictionary .
The question is what can go wrong if you use this method, it is convenient for me. And there is simply no time to deal with SQL yet, and I don’t really want to, I tried sqlite3 , very complex queries, on pure sql
, although I just need to store dates, and check if they are busy, and if they are busy, then store information about the client there (another dictionary ). In general, does it make sense to install some kind of database like sqlite3 , MySql , or can you get by with a dictionary ? It’s just that there are fears that it will become very inflated over time, and won’t it be hard for json ? I plan to delete old days, etc., but still, I want to ask knowledgeable people if it is possible to do this. Thanks in advance
Answer the question
In order to leave comments, you need to log in
It depends on what content is in the json file. If it is small, and the project is just a small pet project, then you can get by with a file. Especially if the work does not involve a large number of calls.
what could go wrong
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question