Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
RajeshKapur
Helper I
Helper I

Warehouse and Lakehouse | Optimization and Maintenance tasks

Hi,

 

We have lakehouses with delta tables and files and also have warehouses with views and SP on tables. Could anyone please suggest some regular maintainence tasks that is needed or recommended on Warehouse and Lakehouse to get best optimization/performance.

 

Thanks 

1 ACCEPTED SOLUTION
v-csrikanth
Community Support
Community Support

Hi  @RajeshKapur 
I apologize for any confusion caused by my earlier responses. Upon further research, it appears that Microsoft Fabric Warehouse does not currently support the creation of indexes using the "Create Index" statement. Attempts to execute such statements result in an error indicating that this operation is not supported.

The CREATE INDEX statement is not supported in Fabric Data Warehouse.

vcsrikanth_1-1742984779779.png

 

Related information can be viewed here:

Tables in data warehousing - Microsoft Fabric | Microsoft Learn

 

As an alternative, similar indexing functionality can be implemented using primary keys, foreign keys, and unique constraints.

 

Related information can be viewed here:

Primary, foreign, and unique keys - Microsoft Fabric | Microsoft Learn


If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.

View solution in original post

8 REPLIES 8
v-csrikanth
Community Support
Community Support

Hi  @RajeshKapur 
I apologize for any confusion caused by my earlier responses. Upon further research, it appears that Microsoft Fabric Warehouse does not currently support the creation of indexes using the "Create Index" statement. Attempts to execute such statements result in an error indicating that this operation is not supported.

The CREATE INDEX statement is not supported in Fabric Data Warehouse.

vcsrikanth_1-1742984779779.png

 

Related information can be viewed here:

Tables in data warehousing - Microsoft Fabric | Microsoft Learn

 

As an alternative, similar indexing functionality can be implemented using primary keys, foreign keys, and unique constraints.

 

Related information can be viewed here:

Primary, foreign, and unique keys - Microsoft Fabric | Microsoft Learn


If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.

v-csrikanth
Community Support
Community Support

Hi @RajeshKapur 

In Microsoft Fabric's Warehouse, you can create indexes to make queries run faster, especially on large datasets. Fabric Warehouse uses Synapse SQL, which supports standard T-SQL indexing.

Types of Indexes in Fabric Warehouse:

  1. Clustered Index – Sorts and stores data physically based on the indexed column.
  2. Non-Clustered Index – Creates a separate structure to speed up searches without changing data order.
  3. Columnstore Index – Ideal for big data analytics, improving speed and reducing storage size.


If the above information helps you, please give us a Kudos and marked the Accept as a solution.

Best Regards,

Community Support Team _ C Srikanth.

 

Getting error while tryin creating Index 

CREATE INDEX is not a supported statement type.

v-csrikanth
Community Support
Community Support

Hi @RajeshKapur

If you want implement is warehouse depends best approach is based on the data size, query complexity, and workload patterns.
1) Automated Index & Statistics Maintenance : Schedule a weekly job to rebuild/reorganize indexes and update             statistics.
2) Query & Stored Procedure Optimization

  • Identify slow queries from sys.dm_exec_query_stats.
  • Rewrite queries for better indexing and execution plans.
  • Reduce nested loops and cursors.
  • Implement rolling data retention with partitioning or archiving.


If the above information helps you, please give us a Kudos and marked the Accept as a solution.

Best Regards,

Community Support Team _ C Srikanth.







Hi @v-csrikanth 

How can I build indexes in Warehouse available in Fabric. 

 

Thanks

v-csrikanth
Community Support
Community Support

Hi @RajeshKapur   
Thank you for being part of the Microsoft Fabric Community.

 

If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.

Hi C Srikanth

 

This is only for Lakehouse's, isn't it?  You can't set a lower retention period than 30 days on a warehouse can you?  I have had a look and don't seem to be able to remove system created restore points within the last 30 days.

 

Thanks,

 

Mike

And any if we have to perform something around this in warehouse?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.