7

Click here to load reader

Framework workshop

Embed Size (px)

Citation preview

Page 1: Framework workshop

Framework & Speed + Memory Improvements

Page 2: Framework workshop

Speed + Memory

● Better use of postgresql functionalities● Fillfactor & tablespace definition for each model● Split some multi-model table on it own schema

– Properties– Translation– Workflow– Free benefit: fix some security issues

● HTTP keep-alive on clients

Page 3: Framework workshop

ORM

● MORE DOCUMENTATION● search_read + search_browse● Real datetime object. No more strings● Domain: BETWEEN operator

● [('price', 'BETWEEN', (100, 200))]

● delegate logic to fields itself to easy the create of new type of fields (also for domain operators)

● easy way to add new services/protocols: jsonrpc / soap / ...

Page 4: Framework workshop

ORM

● Server logs readable and configurable from the client

● High level functions for “base” operations● Create invoice

● Better crash reports (cgitb, last rpc requests...)● metadata on the model that change the

rendering of the view ● if a field is biggger than x, put this text in red / show

notification

Page 5: Framework workshop

ORM

● multiple inheritance of model can break functions.● Multiple overloading in multi-localization.

Computation for fr_FR is not the same than for de_DE

Page 6: Framework workshop

ORM: sequences

● manage a "hole" list (configurable)● when ask next #, use one from hole list● hole list generation● reset each month / year ● reset at 0 when reach a given maximum● date is taken from context (not current)

Page 7: Framework workshop

ORM: cron improvement

● real cron jobs, that obey start date, interval (determinist)– so no "priority" needed

● jobs could be demonized (killed with the server)● jobs could be locked out: not run 2 same job (group) at the

same time● interval need more "business" logic: 1st monday of month, last

day of month...● better logging of cron jobs, especially in case of crash● cron runner can be disabled (multiple server on the same db)● running condition