Showing posts with label SAP Hana. Show all posts
Showing posts with label SAP Hana. Show all posts

Saturday, September 1, 2012

Column Store Database Technology

Column Store database technology is something creating a buzz these days in the world of Business Intelligence as the time of Self Service Business Intelligence is coming soon and performance is going to play major role in deciding which Self Service BI tool to adopt. The Column Store Technology is something not new and it’s been there in the market since long time. I believe Sybase IQ, Teradata and now SQL Server 2012 are the major players in the field of the column store technology.

As the adoption of the self service Business Intelligence tool will grow day by day which I am sure, it is highly important for these tools to store the large amount of data effectively and have ability to play around with the data at run time efficiently. As we know unlike the OLAP where we do have the pre aggregated stored in the within the cells, in the self-service BI tools it is done on real time data based on the request.
 
SAP HANA a self-service Business Intelligence tool leverages the Sybase column store technology for data storage in memory, similarly Microsoft based self service BI tool Power Pivot uses the xVelocity in memory analytic engine and same technology is used for the column store index in the SQL Server 2012.
 
What is Column Store and how column store drastically improves the speed of the data warehouse queries?
 
In a traditional table the data is stored in the row- based fashion. This storage is basically the row based storage. Column Store is something like turning the row based storage to 90 degree. In the column store all the values of a single column are stored in compressed form. The column store stores each column in separate set of disk pages rather than storing multiple rows per page.
Let us take an example of the Employee Table to evaluate the different ways of storing the data.
Table Containing the Employee Data –
 

Employee Data Stored in the Row Format


Row Store 


1           14417807      adventure-works\guy1            Production Technician - WC60       M      M
2           253022876     adventure-works\kevin0         Marketing Assistant                        S       M
3          509647174      adventure-works\roberto0      Engineering Manager                     M      M
 
4          112457891      adventure-works\rob0 Senior Tool Designer                                 S       M
 
5         480168528     adventure-works\thierry0       Tool Designer                             M       M
 


Column Store
1 2 3 4 5
14417807 253022876  509647174 112457891 480168528
adventure-works\guy1 adventure-works\kevin0  adventure-works\roberto0  adventure-works\rob0  adventure-works\thierry0
Production Technician - WC60  Marketing Assistant  Engineering Manager Senior Tool Designer  Tool Designer

M S M S M
M M M M M
 
As you might see the that column store groups and stores the data for each column together while row store groups the data for each row.
Now since we understand on how the data is stored in row and column based storage techniques, let us try to understand on how the column store significantly improves the speed of the queries.
The first and the biggest reason for significant improvement in the query speed is because the column store shares many more similar characteristics that the data stored at row level. Because of this data can be highly compressed in the column store database.
When the data is compressed, queries requires less IO because the amount of data that needs to be transferred from the disk is significantly reduced.
The compression permits the columnar operations like MIN, MAX, AVG, COUNT etc..to perform quickly.
In the case of SQL Server 2012 column store uses the xVelocity compression algorithm which compresses the data far superior than the row and page based compression techniques.
The column store technology is used to improve the Data Warehousing queries and we might see a lot of enhancements and improvements coming in this area in near future.

Sunday, August 12, 2012

Get your own SAP HANA DB Server using Amazon Web Services

Someone who is interested to explore SAP HANA and do not have access to HANA DB server can use the Amazon Web Services by creating their own instance on the cloud. Please keep in mind that this is not a free service and after completing the free trial limit you will be charged by Amazon based on the usage and volume of data.


The steps are very simple in order to create our own HANA instance using Amazon cloud services. We need to follow the below mentioned steps in order get the access to the SAP Hana instance running on the cloud.

1.   Account creation in Amazon Web Services. We need to have an account on the Amazon Web Service as a first step, please note while creating the account, you will be asked to enter the credit card information which is mandatory in order to complete the registration.

2.     Now once we have the account setp up, we need to generate the “Key Pair”. In order to create the Key pair we need to go to the “Amazon Management Console” àEC2 à Left hand side we should see the option called “Key Pairs”, give a Key pair name. You will be asked to save the Key Pair file which we should keep in a safe place as this will be used further.

3.      Once we have the Key Pair ready, we are ready to go to the SAP site to register for the Hana. You need to Login and need to accept the License agreement. In case if you go not have the account in the SAP SCN then we need to create first in order to move further.

4.   After accepting the licensing agreement, you will be asked to enter the Amazon account number which you can find from the Amazon Web Services.





5.     Enter the Amazon account number and in the next page you will be asked to enter the Key Pair name which you already created in the Amazon Management console. Enter the Key pair name and click Continue. Regarding the HanaInstaceSize, use the default option “m2.xlarge” until you have need of some extra memory.

    



      

6.  In the final step, you will be asked to enter the Stack name and new stack will be  created in few minutes.





7.     Now we should again login in the Amazon Web Services and go to the Management Console, click on the EC2 and you should see the option called “Launch Instance”. After clicking on the “Launch Instance”, the SAP Hana instance will be initiated and ready to use. We will have to give the IP Address of this instance from the HANA client in order to connect my HANA DB hosted on Amazon Web Services.



8.      In order to install the SAP Hana Client, please click on the link and download the Windows (32 and 64 bit) or Linux version of client.  

9.   As mentioned in starting this is not a free service and you should be careful about the usage. Also in order to reduce the usage cost you should start the instance only when we are going to use. The rest of the time we can easily stop the instance, it takes less than a minute to restart the instance. In order to Stop the instance, go to the Amazon Management Console,   go to the EC2 and in the home page in the left hand side under instances we should the option called “Stop” used to stop the instance. 

For more details on Amazon Web Services and SAP HANA DB Server, you can visit the SAP Community Network