How to measure the size of one record in a table

Yuki21
Tera Expert
Is it possible to measure the approximate size of one record in a table by the following method?

<Measurement method>
Check the difference between the Primary DB size (MB) of the Application Usage Overview before and after adding the record to the table.
* Create 10,000 records and divide the difference by 10,000

Is the Primary DB size (MB) reflected immediately after adding a record?
1 ACCEPTED SOLUTION

MySQLに一般的にテーブルを作成した話になります。

varcharがemptyの場合は0バイトになります。

Integerは4バイト

Date/Timeは8バイト

ReferenceはGUIDなので32バイト

Floatは4バイト

因みに次ぎのNow Support記事によると40文字以下はvarchar(40)です。

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0685779

 

ただし、ServiceNowのテーブルとデータベースのテーブルは異なる場合があります。

データベースのテーブル名はsys_storage_aliasテーブルで見ることができます。列Storage table nameがデータベースのテーブルで、列TableはServiceNow上での論理テーブルのようです。例えば、cmdbを継承したテーブルは実際はすべて物理テーブルcmdbにあります。baseテーブルは物理テーブルで、extendedテーブルはbaseテーブル内に作成されているようです。

実際には分かりませんが、extendedテーブルは物理テーブルで列で識別されているように見えます。

次ぎのNow SupportページにTaskテーブルについての説明があります。

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0713626

 

話は最初に戻りますが、何故レコード長が必要なのでしょうか?

ServiceNowのようなaPaaSの利点は色々なミドルウエア技術が隠蔽されていてアプリのみに集中することであると思います。ServiceNowから提供されちるベストプラクティスに基づいて作成/運用して、それで問題が発生した場合はServiceNowに改善も求めることが出来ます。

View solution in original post

6 REPLIES 6

thank you for your answer.
The reason why the record length is necessary is that it is necessary to create 20 to 30 million records in the above table definition a day.
I'm trying to simulate how many days' worth of records can be stored on a ServiceNow instance with a storage capacity of 4TB.
If the simulation shows that you can't stand the operation, you should consider the need to reduce the number of records per day.

Sanjay Bagri1
Tera Guru

Hi 

 

I am not entirely sure it something you'll be able to do yourself. However, ServiceNow support should be able to help.  If you put in a ticket with them in Hi Team they will help you in better way.

If my answer helps you then please mark my answer is correct and helpful.

Thanks

Sanjay Bagri

QBrainX Pvt. Ltd.