Flask-Blog-Tutorial icon indicating copy to clipboard operation
Flask-Blog-Tutorial copied to clipboard

Get rid of SQLAlchemy warning messages

Open TechStudent10 opened this issue 4 years ago • 7 comments

Fixes #2

TechStudent10 avatar Jul 19 '21 22:07 TechStudent10

can you share what warnings are given to you .

divyanshu-parihar avatar Jul 20 '21 13:07 divyanshu-parihar

@divyanshuParihar265

C:\Users\username_that_i_am_not_disclosing\Cloned GIT Stuff\Flask-Blog-Tutorial\venv\lib\site-
packages\flask_sqlalchemy\__init__.py:873: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant 
overhead and will be disabled by default in the future.  Set it to True or False to suppress this warning.
  'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and '

TechStudent10 avatar Jul 20 '21 15:07 TechStudent10

I think in this project , sqlalchemy event system is not used . so suppress ing warnings should be fine and other than that it also has its own resource consumption. It can be a good optimization at backend too. https://stackoverflow.com/questions/33738467/how-do-i-know-if-i-can-disable-sqlalchemy-track-modifications

divyanshu-parihar avatar Jul 20 '21 15:07 divyanshu-parihar

@divyanshuParihar265 the link you put redirects back here.

TechStudent10 avatar Jul 22 '21 19:07 TechStudent10

i don't know why this happening , but you can try copy pasting the url into your browser .

divyanshu-parihar avatar Jul 28 '21 04:07 divyanshu-parihar

@divyanshuParihar265 Ok!

TechStudent10 avatar Jul 28 '21 16:07 TechStudent10

@divyanshu-parihar you apparently changed your username, so now my pings don't work haha.

TechStudent10 avatar Sep 26 '21 16:09 TechStudent10