OK. In addition, I need UNIQUE with several fields in a list. I've found the following way to do it:
class Log(meta.Model): key = ... date = ... class META: unique_together = (("key","date",...),) Is it the way? It creates proper SQL. What about indexes on several columns? Now, I'm going to load tons of logs into the database. I want python objects to look at them, but the loader should be very fast. Is loading the database directly according to the schema enough for Django -- i.e., there's nothing else, or does it keep more secret stuff somewhere?