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
30066b43
Commit
30066b43
authored
Mar 03, 2025
by
mic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add new sql.
parent
3608fdc8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
3.0.3.sql
电子日历/3.0.3.sql
+11
-1
No files found.
电子日历/3.0.3.sql
View file @
30066b43
alter
table
t_ip2location_info
alter
table
t_ip2location_info
...
@@ -9,3 +9,12 @@ create index idx_business_id
...
@@ -9,3 +9,12 @@ create index idx_business_id
alter
table
t_device
alter
table
t_device
add
device_address_update_time
datetime
null
comment
'设备地址(country/province/city)上次更新时间'
after
city
;
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