Reputation: 95
I'm trying to improve the query time for Tableau when it queries data from the table in my SQL Server database. When considering # of rows vs. # of columns, should I have a short & wide table or tall & thin?
This resource has done some research proving that the tall & thin approach is better: http://www.powerpivotpro.com/2011/08/less-columns-more-rows-more-speed/, but I wanted a few more sources of info before I started the formatting of the tables.
Thanks
AFTER EDIT: Would multiple tall & thin tables that are joined be less performant than 1 short & wide table when Tableau is pulling data from it to make visualizations?
Upvotes: 2
Views: 2979
Reputation: 454
Tableau does better with tall data than wide data. This is because it does better when all the numbers to graph are in the same column. Tableau performs well with a category field. The category can do a variety of different things when used in the boxes for "color", "detail" (breakdown by), "label".
Tall example
Wide example
Have you heard about the Excel data reshaper? Here are two links about it.
http://www.tableausoftware.com/about/blog/2012/03/reshaping-data-made-easy-16353
http://kb.tableausoftware.com/articles/knowledgebase/addin-reshaping-data-excel
Upvotes: 4