Sanpele / websitePlaying

Personal website little projects.
0 stars 0 forks source link

optimization/refactor of DB implementation constructor. #3

Closed Sanpele closed 2 years ago

Sanpele commented 2 years ago

The current constructor is using old code to check whether the DB table exists, it may be ideal to move this to another method as the constructor is called each and every time the webpage is checked while the table need only be created once.

Moving this code to another method will also simplify the bloated constructor.

May need to update the DB interface to accomplish this.

Sanpele commented 2 years ago

Shouldn't populate queries with with raw object parameters? Consider building query more slowly, will be more clean to read.