| |

VerySource

 Forgot password?
 Register
Search
View: 1236|Reply: 8

How to manage massive pictures?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-8 11:40:01
| Show all posts |Read mode
Created a new database, one table, each record uses 4 image fields to store 4 jpeg pictures, each picture is about 60k, there are 500 records a day, so this database has 60 × 4 × 500 × 365 in one year / 1000 = 43800M = 43G size, may I ask:
1. Can sqlserver manage such big data?
2. How to design to optimize the use and query?
3. Would you like to delete it regularly?
You'd better give me a detailed example to help me as a novice, thank you very much!
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-9 10:18:02
| Show all posts
1, SQL Server can do it
2. This is not a good method. The database tables will be very bloated and not conducive to retrieval.
   -It is recommended to split it vertically and divide it into multiple tables so that it is easy to manage, but it is difficult to handle so many pictures
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-7 23:15:02
| Show all posts
What if you use the write path method
Reply

Use magic Report

0

Threads

28

Posts

25.00

Credits

Newbie

Rank: 1

Credits
25.00

 China

Post time: 2020-3-8 09:00:01
| Show all posts
It is recommended to compress before saving and decompress when reading
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 New Zealand

Post time: 2020-3-9 09:00:01
| Show all posts
It's better to use the path method
Reply

Use magic Report

0

Threads

22

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-20 12:15:02
| Show all posts
Support the method of saving the path! !!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 Singapore

Post time: 2020-8-26 21:45:02
| Show all posts
1, yes
2, The picture is stored in another table. Don't put a table with the data
3. See what you need.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-26 22:00:02
| Show all posts
1. Can sqlserver manage such a large amount of data?
     Yes, the image string is a large (up to 2 GB) character or binary string stored outside the data line
2. How to design to optimize use and query?
     Create an index on this table. If you don’t need to query pictures for each query, it is recommended to build another table to save pictures
3. Do you want to delete it regularly?
     base on needs
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-26 23:15:01
| Show all posts
If your pictures don't have to be stored in the database, just save a path.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list