I would like to consult on the following issue: in the activity of the application, you need to build a graph. One axis will be some amount of goods, and another date. For storing the number and dates, I planned to use the SQLite database, because it seems to me that this data will be easier to process. Or you should not bother and use a regular file? Only then how to handle the date, if it will be stored as dd.mm.yyyy

  • Yes, it will be much more convenient and correct to use the database. more likely to bother with just reading the file, parsing, and that’s all for this - pavlofff
  • Flies should be separated from cutlets. Data must be separated from their presentation. There is a data access layer: it can take it from the database, from a file, receive it over the network ... There is a display layer: it can output data in the form of a graph, chart, table ... One does not depend on the other. - Alexander Petrov

1 answer 1

Uniquely SQLlite, many convenient functions for working with data, there are indices for large amounts of data, a transaction mechanism. Select what you want you can do. Graphics build a pleasure.

But you still have to work with files for backup and data exchange. Use binary format, it is faster and easier to download.