mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-09 21:43:07 +00:00
3b56d2c22b448238f5a2fc38cb3d2c85c0d9e5ba
Selling.date
L'index prend ~20% de la taille de la table (la table fait un peu plus de 100%Mo, et l'index un peu plus de 20Mo), mais permet de diviser par 10 les requêtes qui filtrent sur la date des ventes. Ca concerne notamment les requêtes db faites sur les pages suivantes : - les appels à facture (~75ms → ~3ms) - les ventes d'un club (entre 300ms et 450ms → entre 10ms et 15ms) - le top conso des comptoirs (sur le Foyer, ~90ms → ~9ms) - les dernières opérations d'un comptoir (sur le Foyer, ~130ms → ~1.5ms J'aurais bien aimé mettre également un index sur la troncature au mois de la date, mais c'est compliqué à mettre en place étant donné que postgres ne prend des index que sur des expressions immuables et que, comme elle dépend de la timezone (qui peut changer), la fonction date_trunc n'est pas immuable.
Sith
This is the source code of the UTBM's student association available at https://ae.utbm.fr/.
All documentation is in the docs directory and online at https://ae-utbm.github.io/sith. This documentation is written in French because it targets a French audience and it's too much work to maintain two versions. The code and code comments are strictly written in English.
If you want to contribute, here's how we recommend to read the docs:
- First, it's advised to read the about part of the project to understand the goals and the mindset of the current and previous maintainers and know what to expect to learn.
- If in the first part you realize that you need more background about what we use, we provide some links to tutorials and documentation at the end of our documentation. Feel free to use it and complete it with what you found helpful.
- Keep in mind that this documentation is thought to be read in order.
This project is licensed under GNU GPL, see the LICENSE file at the top of the repository for more details.
Languages
Python
73.5%
jinja
14.5%
TypeScript
5.5%
SCSS
5.4%
JavaScript
0.5%
Other
0.5%