# Sesión 1 | 03 Agosto 2023 ![](https://hackmd.io/_uploads/HktKroKo3.png) # Condicion With Query (Tablas temporales) ![](https://hackmd.io/_uploads/SJo-_otj3.png) ![](https://hackmd.io/_uploads/S15sYsKoh.png) ![](https://hackmd.io/_uploads/BJI8qoYo3.png) ![](https://hackmd.io/_uploads/SJQgsoFjh.png) ![](https://hackmd.io/_uploads/r1kAoiFo2.png) :::warning (with context) Aplicado a los campos computados ::: ![](https://hackmd.io/_uploads/rkOqpsFoh.png) ![](https://hackmd.io/_uploads/H1-36iYo3.png) ## Performance Odoo ![](https://hackmd.io/_uploads/HyMAaiKj2.png) ![](https://hackmd.io/_uploads/BJvgCoFsh.png) <small>**Archivo postgres.conf**</small> :::warning shared_buffers [NOTA]: Poner mas memoria Ram, damos la maxima capacidad a postgres y limita a las demas aplicaciones , la recomendacion es darle un 25 % ::: ### Esto mantenia la memoria llena ![](https://hackmd.io/_uploads/HJSpkntsh.png) ![](https://hackmd.io/_uploads/Hkxcx2Yon.png) COMANDOS PARA MANTENIMIENTO La base de datos genere los indices y las consultas sean mas rápidas :::info Ejecutar cada año o cada 6 Meses REINDEX ::: ```bash! REINDEX DATABASE "raloy_productivo"; ``` Realizar limpieza de tablas ```bash! VACUUM(FULL,ANALYZE); ``` **REINICIO DEL SERVIDOR CADA 100 DIAS** # Documentación https://www.postgresql.org/docs/11/runtime-config-resource.html https://www.tutorialsteacher.com/postgresql/with-query https://realpython.com/python-logging/
{"title":"OGUM","contributors":"[{\"id\":\"5d38f691-3bfb-480f-b555-5df60b94f314\",\"add\":1460,\"del\":5}]"}
    82 views
   Owned this note