[python-chinese] django的tag建表
lendcomcn
lendcomcn在gmail.com
星期三 九月 6 02:31:02 HKT 2006
看了一下,三个表的确有很多方便之处,但还不如直接建立一个ForeignKey,一条信息tag重复的过滤并count+1 这样也很方便呀。
三个表的重用性更好些。研究了很多国内的网站,都好像只建两个表就了事了。
在 06-9-4,bird devdoer<devdoer at gmail.com> 写道:
> 3x
>
>
> 2006/9/4, limodou <limodou at gmail.com>:
> > On 9/4/06, bird devdoer <devdoer at gmail.com> wrote:
> > >
> > > limdou说的很对
> > > 但是我现在想快速实现我的想法,很多东西能work就行,另一方面我对数据库的设计没什么经验,
> > > 都是凭直觉做,肯定有很多不合理的地方,各位尽管拍砖.
> > >
> > 这有一个链接
> http://www.pui.ch/phred/archives/2005/04/tags-database-schemas.html
> > 讨论了 del.icio.us
> 的几种tag的实现方法,可以参考一下。你的方法就是第一种方法,但大多数人都是采用三个表的方法。
> >
> > --
> > I like python!
> > My Blog: http://www.donews.net/limodou
> > UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
> > UliPad Maillist: http://groups.google.com/group/ulipad
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
>
> --
> devdoer
> devdoer at gmail.com
> http://project.mytianwang.cn/cgi-bin/blog
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
关于邮件列表 python-chinese 的更多信息