on 05-22-2013 3:49 PM
Hi
How we can classify the data base table while creating i.e row table or column table.
on what basis we can decide creation of table is row table or column table.
Santhosh
Hello,
most probably you want to create column based table.
Simple rule to decide is if you wish to create models using this table. If the answer is yes then you MUST create table as column based because row based tables cannot be used in modeling. If the answer is no then more detailed discussion is required.
Decision if table is row based or column based is part of CREATE TABLE statement (or part of relevant dialogue in SAP HANA Studio). If required table can be later converted.
Please post what you plan to do with the table and what data it will contain.
Tomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Santosh,
In general, if you are looking at creating a table to store large volumes of data ( master / transaction), it is recommended that you create a column table.
You specify the type using the create table syntax followed by column / row key word.
Please go through the SQL scrip guide for full syntax.
Hope this helps.
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santhosh,
There are 3 scenarios we can consider while creation of tables.
CREATE COLUMN TABLE "BWBOHANA"."EMP1"(
"EID" SMALLINT not null,
"ENAME" NVARCHAR (30) not null,
primary key ("EID"));
This creates the column table. If you do not use the word COLUMN while defining the table then it creates the row store.
Column store is preferred when the transactional data is huge and involves arithmetic operations and aggregations.
Row store is preferred when the table does not used for any calculations. Example for configuration tables.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
"Row based" or "Column based" criteria is related to the internal storage of data in the database. As the name implies, ROW based stores dat row wise, that is, data for the entire row is stored together. Whereas the COLUMN based stores data for the column together.
So depending upon your application, whether you need to read data for a complete row or need to read data for a column, you can choose which storage to use.
Traditionally DW applications do not read data for all the columns in a row, that is, it doesn't read data row wise, but needs data for few columns. In such cases, it is advisable to store the data with column store. Also column store in HANA provides high degree of compression.
You can read the basics of ROW and COLUMN store in HANA manuals for additional details.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.