*** jaroel|4D has joined #zodb | 00:13 | |
*** fdrake has quit IRC | 00:21 | |
*** jaroel|4D has quit IRC | 02:45 | |
*** jaroel|4D has joined #zodb | 02:45 | |
*** jaroel|4D has quit IRC | 02:50 | |
*** nueces has joined #zodb | 03:05 | |
*** jaroel|4D has joined #zodb | 03:16 | |
*** jaroel|4D has quit IRC | 03:20 | |
*** nueces has quit IRC | 04:48 | |
*** jaroel|4D has joined #zodb | 05:18 | |
*** jaroel|4D has quit IRC | 05:22 | |
*** jaroel|4D has joined #zodb | 06:18 | |
*** jaroel|4D has quit IRC | 06:22 | |
*** jaroel|4D has joined #zodb | 07:19 | |
*** jaroel|4D has quit IRC | 07:24 | |
*** J1m_ has quit IRC | 07:28 | |
*** J1m_ has joined #zodb | 07:28 | |
*** jaroel|4D has joined #zodb | 08:20 | |
*** jaroel|4D has quit IRC | 08:24 | |
*** pierre1 has joined #zodb | 09:21 | |
*** jaroel|4D has joined #zodb | 09:21 | |
pierre1 | Hi | 09:21 |
---|---|---|
*** jaroel|4D has quit IRC | 09:25 | |
pierre1 | I 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] - user | 09:27 |
pierre1 | sorry, root['users'][user.email] = user | 09:27 |
pierre1 | it looks ok as an email address is a unique identifier and it looks natural to do it that way. | 09:28 |
pierre1 | But 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)] = article | 09:29 |
pierre1 | is a that a good practice ? How do you usually handle those basic things ? | 09:29 |
*** jaroel|4D has joined #zodb | 10:10 | |
pierre1 | Hi | 10:14 |
pierre1 | Anyone here ? | 10:14 |
*** pierre1 has left #zodb | 11:49 | |
*** jaroel|4D has quit IRC | 13:25 | |
*** jaroel|4D has joined #zodb | 13:26 | |
*** jaroel|4D has quit IRC | 13:30 | |
*** jaroel|4D has joined #zodb | 13:44 | |
*** jaroel|4D has quit IRC | 16:27 | |
*** jaroel|4D has joined #zodb | 16:27 | |
*** jaroel|4D has quit IRC | 16:31 | |
*** jaroel|4D has joined #zodb | 16:56 | |
*** jaroel|4D has quit IRC | 17:55 | |
*** jaroel|4D has joined #zodb | 18:06 | |
*** jaroel|4D has quit IRC | 18:10 | |
*** J1m_ has quit IRC | 19:42 | |
*** J1m_ has joined #zodb | 19:49 | |
*** srichter has quit IRC | 20:10 | |
*** srichter has joined #zodb | 20:47 | |
*** srichter has quit IRC | 22:05 | |
*** srichter has joined #zodb | 22:19 | |
*** srichter has quit IRC | 22:24 | |
*** srichter has joined #zodb | 23:36 | |
*** srichter has quit IRC | 23:41 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!