Answer the question
In order to leave comments, you need to log in
What is the difference between base in csv and sql?
I do not quite understand the difference between a database in csv table format and a full-fledged database in python.
Whether the use of a database affects the speed of work or convenience in comparison with a table.
It is planned to search in the database or table in the future. The number of records can reach up to a million
Answer the question
In order to leave comments, you need to log in
csv - file format, sql - query language. How can they be compared? If desired, you can write an sql query to the csv file.
But if we talk about data storage, then the database (not necessarily even relational, by the way) is still optimized for constant work with them, including insertion / modification / deletion / quick search, and csv - for static files that do not change much and more as a transfer format data.
indexes
(I will correct the answer, with an eye to my colleagues in the answers):
there are no miracles, and the base is not an abstract entity a la "prana, ether, marshmallow" and all that, the
base is the same file, it also cannot be rewritten in its entirety ( sqlite is just a zero example, but a damaged muscle file is also a good example),
at the same time, there are no problems with csv to make queries and groupings (google python Pandas),
but there are INDEXES in the database, and based on them, permanent data management ( where when inserted, how to quickly query from where, etc.)
first of all - created by the DBMS itself (and here even sqlite will give odds to csv), secondly - by a programmer,
but for simple projects - you can get by with csv with related tools
Insertion/deletion is not possible without overwriting the entire CSV file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question