sripathikrishnan / jinjasql

Template Language for SQL with Automatic Bind Parameter Extraction
MIT License
820 stars 90 forks source link

Infinite loops with many params #16

Closed benrudolph closed 6 years ago

benrudolph commented 6 years ago

When I attempt to render a template with 500 to 1000 bind_params performance falls off a cliff. Any insights as to where I could look to start trying to find the slow down? Can profile, but figured you might have some insider knowledge

benrudolph commented 6 years ago

looked into this and this library creates an infinite loop if you have over 1000 params here: https://github.com/hashedin/jinjasql/issues/16

benrudolph commented 6 years ago

https://github.com/hashedin/jinjasql/pull/17