I have some problem with the database and the rules.
I would rewrite rules of all pages, because I have no the table "rewrite_rules" into database.
I have the permalinks => /%category%/%postname%
When I publish a page (no post), I consume about 2800 queries. After, when I change the permalink in "default" (/?p=123), the queries are about 20.
So, I think it is a problem of the table "rewrite_rules" into database.
But now, I have no this table, and so I want rewrite the rules.