[PonyORM-list] Pony startup performance

Alexander Kozlovsky alexander.kozlovsky at gmail.com
Thu Aug 13 21:30:06 UTC 2015


Hi Matthew!

You can turn off verifying of tables by specifying the following option to
generate_mapping method:

    db.generate_mapping(check_tables=False)

On Thu, Aug 13, 2015 at 5:00 PM, Matthew Bell <matthewrobertbell at gmail.com>
wrote:

> I am using pony with python-rq, which loads a fresh process for each job.
> When loading a decent number of models, this means that a lot of CPU is
> being used. A lot of the pony works seems to be verifying that models and
> the database are correct.
>
> Would it be possible to explicitly disable these checks when needed (when
> calling db.generate_mapping)?
>
> Thanks,
>
> Matt
>
> --
> Regards,
>
> Matthew Bell
>
> _______________________________________________
> ponyorm-list mailing list
> ponyorm-list at ponyorm.com
> /ponyorm-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20150814/b11f841e/attachment.html>


More information about the ponyorm-list mailing list