Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
仲光辉
dankal-data-view
Commits
70147ef0
Commit
70147ef0
authored
Mar 04, 2025
by
mercymodest
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
034d265e
30066b43
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
3.0.3.sql
电子日历/3.0.3.sql
+15
-1
No files found.
电子日历/3.0.3.sql
View file @
70147ef0
alter
table
t_ip2location_info
alter
table
t_ip2location_info
...
@@ -5,3 +5,16 @@ drop index idx_user_id on t_ip2location_info;
...
@@ -5,3 +5,16 @@ drop index idx_user_id on t_ip2location_info;
create
index
idx_business_id
create
index
idx_business_id
on
t_ip2location_info
(
business_id
);
on
t_ip2location_info
(
business_id
);
alter
table
t_device
add
device_address_update_time
datetime
null
comment
'设备地址(country/province/city)上次更新时间'
after
city
;
-- 创建复合索引用于地理位置三级筛选
ALTER
TABLE
t_device
ADD
INDEX
idx_device_location
(
country
,
province
,
city
);
-- 单独按省份查询的需求
ALTER
TABLE
t_device
ADD
INDEX
idx_province
(
province
);
-- 单独按城市查询的需求
ALTER
TABLE
t_device
ADD
INDEX
idx_city
(
city
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment