On Thu, Jul 22, 2010 at 4:06 PM, Andy <selforgani...@gmail.com> wrote: >> >> I'm not completely sure what you're trying to do, but I have a blog >> entry on creating temporary models programmatically - it might help >> you:http://blog.roseman.org.uk/2010/04/13/temporary-models-django/ > > What I'm trying to do is to shard my database horizontally.
Why not use the facilities for sharding that are built in? Database routers [1] are designed to allow you to have a single model definition, but decide which database connection is used at runtime based on properties of the objects involved. [1] http://docs.djangoproject.com/en/dev/topics/db/multi-db/#automatic-database-routing Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.