mysql - Python: RE vs. Query -
i building website using django, , website uses blocks enabled page. right use textfield containing paths block enabled. when page requested, django retrieves blocks database , re.search on textfield. however, wondering if not better idea use separate db table block/paths, each row contains single path , reference block, in terms of overhead. i not familiar django, if understanding situation correctly, should use table. in fact kind of use db software designed , optimized for. no worries. faster. by doing search yourself, trying implement part of db logic on own. fun, certainly, not fast. :) here nice links on designing database: http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html http://en.wikipedia.org/wiki/third_normal_form hope helps. luck. :-)