Comments (8)
参考 #243
from ktorm.
本来就可以啊😂😂,我自己想简单点,都是varchar 🤪🤪
让我震惊……怀疑不是计算机科班出生的。
每个类型的存储效率、性能、数据完整性、索引效率等等都有这巨大的区别。比如不考虑全局唯一性约束等情况常将 Int 作为主键id 存储,就是因为具有非常高效的存储和检索。对于数字操作,如比较和计算,性能远高于字符串操作。
居然“想简单点”把他们全部作为 varchar 来搞,也是厉害了。
《👍🏻👍🏻👍🏻你赢了》
from ktorm.
uuid转成String,varchar
from ktorm.
uuid转成String,varchar
是可以这样做,但是这样搞的话,那表结构(图二)里面的uuid类型存在的意义是什么呢?那我不如全局都用String类型了,还要uuid做什么?
from ktorm.
UUID不就是为了做一个唯一主键吗?转成varchar和String 一样用啊。
from ktorm.
UUID不就是为了做一个唯一主键吗?转成varchar和String 一样用啊。
按你这说法,那你整数类型也可以取值转成字符串来存,浮点型也可以转成字符串,布尔类型也可以,时间戳也可以。
那你所有的数据存数据库干脆都toString变字符串统一用varchar来存就行了,其他类型都可以删了。
【注意,以上是你表达出的观点,不是我的观点。不用反驳我,反驳你自己。】
from ktorm.
本来就可以啊😂😂,我自己想简单点,都是varchar 🤪🤪
from ktorm.
本来就可以啊😂😂,我自己想简单点,都是varchar 🤪🤪
👍🏻👍🏻👍🏻你赢了
from ktorm.
Related Issues (20)
- [Feature Request]:Field update strategist, pre positioned during insertion and update
- Connectivity problem HOT 1
- 关于join的优化
- Multiple onConflict at bulkInsertOrUpdate HOT 1
- 自定义支持MySQL的find_in_set函数 HOT 5
- 适配 solon框架 HOT 1
- Union功能存在问题? HOT 2
- 关于列绑定,能不能先references再transform?
- 🧐为什么不添加支持分页的函数呢 HOT 2
- Oracle Timestamp support
- Database#exceptionTranslator should return a nullable throwable
- 4.0版本使用KSP生成实体类运行出错 HOT 8
- ksp column converter in version 4.0.0 disappeared HOT 1
- Ktorm 别名机制似乎有问题 HOT 2
- [Feature Request]: Support OffsetDateTime for Postgresql
- [Feature Request]: KSP Table Annotation Support Specify super class for the table generated HOT 1
- Relaxing BaseTable related visibility constraints
- Postgres how to use TextArray's Contains method? HOT 1
- 使用实体查询,框架会拼接字段名称为【表别名_字段】而遭到 ColumnNameChecker 字段名称过长拦截 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktorm.