Monthly Archives: June 2013

[DAL]epoch

DBMS별로 date를 다루는 방법이 다를수 있으므로 epoch를 사용해야 한다. This may work on sqlite but I am not sure. Anyway it is not portable. It should be possible to use .epoch() import time query = (db.status.updated_on.epoch() + db.status.interval_time*60) < time.time() … Continue reading

Posted in python, web2py | Leave a comment

framework benchmarks – web2py surprisingly slow?

어떤 한 blogger가 python web framework들간의 속도 측정을 한 결과 web2py  가 너무나 성능이 안좋게 나왔다 그에 대한 논의 진행 Just stumbled across this benchmark: http://mindref.blogspot.pt/2012/09/python-fastest-web-framework.html on the python group discussion: https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.python/yu1_BQZsPPc The author also notes a memory leak problem … Continue reading

Posted in python, web2py | Leave a comment

DB migration 순서

https://groups.google.com/d/msg/web2py/UTNIwi7LEJM/zuG0m2-Ki9MJ while developing you should NOT use any of the migrate, fake_migrate, migrate_enabled, etc. Zero tickets in regards of db migrations (unless you do something weird like trying to change a column type from string to integer). The minute you … Continue reading

Posted in python, web2py | Leave a comment

Scaling Web2py – session.disable 구현

Anthony response https://groups.google.com/d/msg/web2py/rO3AyoVycaU/riUyUxpZ96gJ Massimo response https://groups.google.com/d/msg/web2py/rO3AyoVycaU/pM7Dsa19HIUJ Anthony가 제안한 session disable 구현 https://groups.google.com/d/msg/web2py/rO3AyoVycaU/MeEqaFxB-K4J

Posted in Uncategorized | Leave a comment

speedup web2py , cache, session.forget, migrate

I solved performance issue on the server deployment + web2py best practices as the use of cache, session.forget, migrate=False and wise use of models. https://groups.google.com/d/msg/web2py/Yrtrj3BSFl4/BmUnh6ZSRTQJ

Posted in web2py | Leave a comment

How migration works by Niphlod

https://groups.google.com/d/msg/web2py/Fs0ulnCVwrI/7v1RX-r_GNEJ in the “normal” way (i.e. a new Field(), with of course nothing set to prevent migrations, such as migrate=False in the table def, migrate=False, fake_migrate=False, migrate_enabled=False, fake_migrate_all=True in the DAL, etc). There absolutely no problem on doing that. With … Continue reading

Posted in python, web2py | Leave a comment

Encrypting/decrypting db values

DB를 암호화/복호화 하는 방법을 gluon에 추가하자는 논의 Niphlod가 AES를 이용한 구현은 끝낸상태 w2p_encrypt/w2p_decrypt https://groups.google.com/d/msg/web2py/uGFQD0PBefQ/Zi-SPOLVSXIJ Happy Coding~:)

Posted in python, web2py | Leave a comment