Limitations on the size of the database file by years
Original issue #40
In order to time down the size of the database files the database should be able to split into several files. The mechanism assumes creating new database file for every year depending on the choice of the user.
Proposed database file name format:
username{_year}___accountype.db
where
- username = username, i.e. user login (not NULL). The username string is also the primary key used to address the database file.
- accountype = {0,1}, where 0 is standard account and 1 is testing account (not NULL).
- _year:
-
if not specified = the database file contains all messages. E.g. wkclse___0.db -> backward compatible with old Datovka. -
if _2014 = database includes messages from only one year. E.g. wkclse_2014___0.db contains all messages from the year 2014. -
_inv for messages without correct delivery time = special database. E.g. wkclse_inv___0.db contains all messages without delivery time. (E.g. messages that have been rejected by the system or freshly sent messages.)
NOTE: Keep back compatibility with old database format (username___accountype.db).