Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

best practice in using bigint data type #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

knull-cn
Copy link

@knull-cn knull-cn commented Jan 10, 2022

First-time contributors' checklist

What is changed, added or deleted? (Required)

  • add description : best practice in using bigint data type

Which TiDB version(s) do your changes apply to? (Required)

all tidb version which is suport binary type

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status size/L labels Jan 10, 2022
@jinwhu
Copy link
Contributor

jinwhu commented Jan 12, 2022

LGTM

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to hide blockchain in this article, because it is illegal in some countries.

@jackysp jackysp changed the title best practice in using bigint data type for blockchain industry best practice in using bigint data type Jan 12, 2022
zh/_index.md Outdated
@@ -77,6 +77,7 @@ summary: 为开发者提供 TiDB 中文版开发指南。
- [分页的最佳实践](tidb-database-development-specification/best-practices-for-paging.md)
- [唯一序列号生成方案](tidb-database-development-specification/unique-serial-number-generation-scheme.md)
- [流程规范](tidb-database-development-specification/process-specification.md)
- [TiDB 大整数最佳实践](tidb-database-development-specification/best-practice-in-using-bigint-data-type.md)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not need TiDB in the index.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use database instead tidb or delete it ?

@@ -0,0 +1,106 @@
---
title: TiDB 大整数最佳实践
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not need TiDB in the title.

@@ -0,0 +1,106 @@
---
title: TiDB 大整数最佳实践
summary: 介绍 大整数 在 TiDB 中的应用
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why added space around 大整数?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will delete the space

summary: 介绍 大整数 在 TiDB 中的应用
---

# TiDB 大整数最佳实践
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Comment on lines 10 to 12
现在大部分程序语言直接支持 64 bit 的内置类型,即直接支持相关运算。而 `大整数` 是超过 64 bit 的整数,一般是需要自己来实现。

有些场景,`大整数`是必需品(比如 **区块链** 应用,大整数是基础)。我们 TiDB 客户也有大整数的需求,这里根据几个成功案例,总结大整数的解决方案。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too colloquial.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it


### 2. 字节序(Byte Order)

字节序,大家应该都有了解。或者,网上资料、说明一大坨,自己看吧。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too colloquial.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to add these to a new section, for example called Best Practices.

@ti-chi-bot ti-chi-bot added size/XL and removed size/L labels Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants