IRC log of #zodb for Friday, 2014-02-28

*** jaroel|4D has joined #zodb00:13
*** fdrake has quit IRC00:21
*** jaroel|4D has quit IRC02:45
*** jaroel|4D has joined #zodb02:45
*** jaroel|4D has quit IRC02:50
*** nueces has joined #zodb03:05
*** jaroel|4D has joined #zodb03:16
*** jaroel|4D has quit IRC03:20
*** nueces has quit IRC04:48
*** jaroel|4D has joined #zodb05:18
*** jaroel|4D has quit IRC05:22
*** jaroel|4D has joined #zodb06:18
*** jaroel|4D has quit IRC06:22
*** jaroel|4D has joined #zodb07:19
*** jaroel|4D has quit IRC07:24
*** J1m_ has quit IRC07:28
*** J1m_ has joined #zodb07:28
*** jaroel|4D has joined #zodb08:20
*** jaroel|4D has quit IRC08:24
*** pierre1 has joined #zodb09:21
*** jaroel|4D has joined #zodb09:21
pierre1Hi09:21
*** jaroel|4D has quit IRC09:25
pierre1I started using ZODB a few days ago for a web project, and coming from RDBMS, my first concern is: primary keys. So far I have a User model (email, password) and I use the root dictionnary as follow: root['users'][user.email] - user09:27
pierre1sorry, root['users'][user.email] = user09:27
pierre1it looks ok as an email address is a unique identifier and it looks natural to do it that way.09:28
pierre1But now I want to store articles, so I cannot use the title this way. I was thinking about using the hash of the title to store a single article, like so: root['articles'][hash(article.title)] = article09:29
pierre1is a that a good practice ? How do you usually handle those basic things ?09:29
*** jaroel|4D has joined #zodb10:10
pierre1Hi10:14
pierre1Anyone here ?10:14
*** pierre1 has left #zodb11:49
*** jaroel|4D has quit IRC13:25
*** jaroel|4D has joined #zodb13:26
*** jaroel|4D has quit IRC13:30
*** jaroel|4D has joined #zodb13:44
*** jaroel|4D has quit IRC16:27
*** jaroel|4D has joined #zodb16:27
*** jaroel|4D has quit IRC16:31
*** jaroel|4D has joined #zodb16:56
*** jaroel|4D has quit IRC17:55
*** jaroel|4D has joined #zodb18:06
*** jaroel|4D has quit IRC18:10
*** J1m_ has quit IRC19:42
*** J1m_ has joined #zodb19:49
*** srichter has quit IRC20:10
*** srichter has joined #zodb20:47
*** srichter has quit IRC22:05
*** srichter has joined #zodb22:19
*** srichter has quit IRC22:24
*** srichter has joined #zodb23:36
*** srichter has quit IRC23:41

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!