GUID discussion

2006-01-08 Thread mitja
This is a roundup of a discussion that has been taken place in Ticket 1180 about guid generation. http://code.djangoproject.com/ticket/1180 I put it here because discussion should take place in the list. (sorry hugo for putting my suggestion in the ticket, it was my lazy sunday...) - The mechani

Re: GUID discussion

2006-01-09 Thread hugo
>session_key = md5.new(GUID.generate() + SECRET_KEY).hexdigest() >Benefit: unique session key without the need to access the database, >really fast (more than 20.000 session key per second) >Drawback: Additional third party dependency. It's not faster than the current version - it does the same

Re: GUID discussion

2006-01-09 Thread mitja
> Actually the GUID.generate() is more complex than the current version. True. The fun thing about the recipe is that it produces keys that are so unique that they do not need to be checked against a db. That's where the performance benefit comes from. And I think not checking against a db is the

Re: GUID discussion

2006-01-09 Thread hugo
>True. The fun thing about the recipe is that it produces keys that are >so unique that they do not need to be checked against a db. That's >where the performance benefit comes from. And I think not checking >against a db is the "other context" mentioned in the ticket. Actually it doesn't. It dep

Re: GUID discussion

2006-01-09 Thread Radek Svarz
> Just a simple cronjob with an SQL statement that blows away outdatedsessions.Any thoughts of putting this into the bin or maintenance subdir of Django distro?Radek On 1/9/06, hugo <[EMAIL PROTECTED]> wrote: >True. The fun thing about the recipe is that it produces keys that are>so unique that the

Re: GUID discussion

2006-01-09 Thread hugo
>Any thoughts of putting this into the bin or maintenance subdir of Django >distro? There is one in the bin directory, only that script has an additional dependency on the user registrations and so won't run right away, because only ellington users will have that table. bye, Georg