Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

DatabaseManager: do not insert movies one by one #12

Open
SebastienTouze opened this issue Jul 6, 2014 · 2 comments
Open

DatabaseManager: do not insert movies one by one #12

SebastienTouze opened this issue Jul 6, 2014 · 2 comments

Comments

@SebastienTouze
Copy link
Contributor

Hi,

In DatabaseManager (and MainWindows where the calls are made), the movies in a directory are added one by one.
The use of QSqlQuery::prepare once, then QSqlQuery::bindValue() should be more efficient for multiple movies additions.

@ochurlaud
Copy link
Owner

Do it if you know how to handle it.

@ochurlaud
Copy link
Owner

To do this: Create a QList of QStringList in the addNewMovie() function. Then send one big request when the we all movies have been detected

@SebastienTouze SebastienTouze removed their assignment Jan 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants