seitime-frappe/frappe/database
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
..
mariadb perf: Cache db columns to avoid redundant database calls (#8543) 2019-10-07 13:39:40 +00:00
postgres perf: Cache db columns to avoid redundant database calls (#8543) 2019-10-07 13:39:40 +00:00
__init__.py fix(db_type) 2019-05-24 12:06:39 +05:30
database.py perf: Cache db columns to avoid redundant database calls (#8543) 2019-10-07 13:39:40 +00:00
db_manager.py Update db_manager.py 2019-07-19 17:26:49 +05:30
schema.py perf: Cache db columns to avoid redundant database calls (#8543) 2019-10-07 13:39:40 +00:00