简体   繁体   中英

MySQL: view or create a new table?

I'm doing a java project in which I have to use a MySQL database with a big amount of data (geonames). Since I need to verify if a proper name is a geoentity I need only 3 coloums of a table. So I would like to know if it is better to use a view of this table or just create another table with only this three attributes.

Thanks in advance!

为什么不这样选择3列:

select col1, col2, col3 from your_table

There is no need creating a view in the case. If you do this, maybe more overhead on this db.

BTW, creating proper index will affect a lot performance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM