The Django docs say that for everything except SQLite, the regex match is turned directly into SQL, so this would end up as something like `SELECT ... WHERE username REGEXP BINARY '^mythmon[0-9]+';` I think the performance isn't a concern here.