java - Creating multiple SQLite databases containing the same schema for a Flashcard program, bad practice? -
i trying come way can import/export sets of data. need share deck of flashcards. each flashcard includes:
- front text
string, - reverse text
string, - efactor
float/real, - interval
integer, - count
integer
the idea want users create deck of flashcards , have ability share deck. concept similar of decks / .anki files in anki. @ moment using sqlite3 store flaschard data. had considered using xml felt sql more logical approach.
my initial plan allow users create multiple sqlite db files because felt there key advantages approach.
- 1) easier share db file rather having export table sqlite database , end sharing file anyway.
- 2) if user wishes delete deck, simple deleting db file.
as negatives though: can understand maybe seen waste of resources or 'messy' create multiple sqlite fb files.
is method feasible or considered bad programming practice? i'm open different approaches problem.
i think having separate .db file per deck acceptable. mentioned, allows easier addition/removal of decks. sharing of decks simpler -- can send file. easier alternative of opening "master deck" , exporting deck wish share.
there not duplicated data among each of decks (some schema information), it's not big waste. will have careful versioning inside decks if change scheme, however. may bit trickier multiple files.
Comments
Post a Comment