Forum Discussion

meirlicht's avatar
meirlicht
Frequent Visitor
3 years ago
Solved

Working with large amounts of data SQL Server

  I have Windows computer with 16 GB of RAM,  2.13 GHz CPU, and about 60 million rows of data stored in SQL Server. When querying all the data in SSMS it takes about 30 minutes, I am trying to visua...
  • GilbertQ's avatar
    3 years ago

    Hi meirlicht 

     

    I would highly recommend you use the Incremental refreshing.

     

    If you have got a lot of data, what I would suggest is to manually process each partition in your dataset. By doing it manually for each partition, you can then make sure that each query runs within the 5 hours limit before going onto the next partition to then query.

     

    I have got a dataset with over 1 billion rows in total (it took me 5 full days to get the data in), but this is the process I followed to get it done.

  • meirlicht's avatar
    meirlicht
    3 years ago

    Thank you so much for your help! I am currently manually refreshing each parition in SSMS via XMLA endpoint. I also switched to PostgreSQL since I was running out of storage on using the free SQL Server Express Edition.  The term "Premium Capacity" is used in the above link which threw me off since I thought it was refering to purchasing a seperae capacity, but it is simply talking about having a premium account.

     

    Here are the steps I took incase anyone else is struggling with the same issue:

    1: Added a filter at the end of my PowerQuery: Table.SelectRows(#"previous step", each Parameter1) Where Parameter1 is set to False

    2: Set up incremental refresh policy

    3: Publish to PowerBI and refresh dataset. This refresh took one minute since all the data is filtered out because Parameter1 is set to false. This refresh also created all my partitions.

    4: In the dataset settings in PowerBI Service, switch Parameter1 = True (I also truned on "Large dataset storage format")

    5: In Tabular editor I connected to the PowerBI dataset and edited the partitions to make them smaller so that none would timeout.

    6: In SSMS I connected to the PowerBI dataset and manually processed one partiton at a time using "full process"