seitime-frappe/frappe/database/mariadb
Suraj Shetty 86263e05f4 perf: Cache db columns to avoid redundant database calls (#8543)
* perf: Cache db columns to avoid redundant database calls

* fix: Move cache clearing code from doctype to schema.py

* fix: self.table_name instead of self.name

* fix: Cache columns in  "table_columns" key

`table_columns` was cached in meta but columns were also getting accessed
directly using frappe.db.get_table_columns. Now, it is cached at
`frappe.db` layer

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2019-10-07 13:39:40 +00:00
..
__init__.py Postgres support for Frappe (#5919) 2018-09-21 10:20:48 +05:30
database.py fix: handle data too long exception (#8292) 2019-09-02 23:30:10 +05:30
framework_mariadb.sql perf: Cache db columns to avoid redundant database calls (#8543) 2019-10-07 13:39:40 +00:00
schema.py Postgres support for Frappe (#5919) 2018-09-21 10:20:48 +05:30
setup_db.py fix(mariadb): refactor db setup (#7049) 2019-04-17 18:38:11 +05:30