JoeyHendricks / python-benchmark-harness

A micro/macro benchmark framework for the Python programming language that helps with optimizing your software.
MIT License
154 stars 13 forks source link

QuickPotato crashes when large payload are sent to database (SQLite Only) #1

Closed JoeyHendricks closed 3 years ago

JoeyHendricks commented 3 years ago

The why:

When running in SQLite mode (not attached to a proper database server) QuickPotato will crash when the insert payload is over 999. This crash can happen every time when turning on system resource collection or when your stacks are large.

Work around:

Turn off system resource collection in the options file and for now refrain from measuring large and complex piece of code when running in SQLite mode. Or you can just connect to a database server like MySQL where to problem does not exist.

Reason:

SQLite cannot insert payload greater than 999 SQL variables therefore it would spit out the following error:

"too many SQL variables"

Link to problem description on stack overflow:

Solution

Within the interpreter classes I need to make changes so the following action could be preformed:

JoeyHendricks commented 3 years ago

Made the changes required to fix the issues. Still need to do the following things before fix can be pushed to master branch:

JoeyHendricks commented 3 years ago

Problem is solved will add more tests to project soon