database - Basic data storage with Python -


I need to store the customer's basic data and buy cars that they have purchased and these programs pay the program. This data comes from GUI, written in Python. I do not have enough experience to use a database system like SQL, so I want to store my data in a file as plain text. And it does not have to be online

To be able to search and filter them, first I convert my data (lists of lists) to string, then when I need data Then the regular Python list is converted to syntax again. I know that this is a very powerful force, but is it safe to do this or can you advise me in some other way? Never save your database in a text format (or pickle or whatever is used). There is a risk that the problem in saving data can be the cause of corruption. The risks associated with your data are not being mentioned.

As your dataset grows, there may be a performance hit.

Take a look at SQL (or sqlite3) that is small and easy to manage with MySql unless you have a very small dataset that will fit into a text file.

P / S: BTW, using Benkely DB in Python is easy, and you do not have to learn all DB stuff, just import BSDDB


Comments