Skip to content

Commit

Permalink
perf: 索引优化成hash
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Apr 24, 2023
1 parent 894beee commit 0b6020a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ CREATE TABLE modelData (
a TEXT NOT NULL
);
-- create index
CREATE INDEX modelData_status_index ON modelData (status);
CREATE INDEX modelData_userId_index ON modelData (user_id);
CREATE INDEX modelData_modelId_index ON modelData (model_id);
CREATE INDEX modelData_status_index ON modelData USING HASH (status);
CREATE INDEX modelData_userId_index ON modelData USING HASH (user_id);
CREATE INDEX modelData_modelId_index ON modelData USING HASH (model_id);
EOSQL
```
**/root/fast-gpt/nginx/nginx.conf**
Expand Down

0 comments on commit 0b6020a

Please sign in to comment.