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. :-)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -