Skip to content

Commit

Permalink
Merge pull request #59 from brown9804/genAIFoundryOverview
Browse files Browse the repository at this point in the history
Gen AI Apps Overview - p1
  • Loading branch information
brown9804 authored Jan 16, 2025
2 parents 16ca09d + 05ce4e4 commit 58f65c7
Show file tree
Hide file tree
Showing 8 changed files with 1,360 additions and 12 deletions.
32 changes: 29 additions & 3 deletions 0_Azure/1_AzureData/1_Databases/demos/8_DBFreeingUpUnusedSpace.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Costa Rica
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
[brown9804](https://github.com/brown9804)

Last updated: 2024-12-24
Last updated: 2025-01-13

----------

Expand All @@ -21,7 +21,8 @@ Last updated: 2024-12-24
- [Types of Databases](https://azure.microsoft.com/en-gb/products/category/databases/)
- [Shrink Database Task (Maintenance Plan)](https://learn.microsoft.com/en-us/sql/relational-databases/maintenance-plans/shrink-database-task-maintenance-plan?view=sql-server-ver16)
- [Manage file space for databases in Azure SQL Database](https://learn.microsoft.com/en-us/azure/azure-sql/database/file-space-manage?view=azuresql-db)

- [DBCC SHRINKFILE (Transact-SQL)](https://learn.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-shrinkfile-transact-sql?view=sql-server-ver16)

</details>

## Content
Expand Down Expand Up @@ -348,8 +349,24 @@ For Azure SQL Managed Instance, consider these strategies:
-- Shrink the database file (replace 1 with your file_id)
DBCC SHRINKFILE (1);
```

<img width="550" alt="image" src="https://github.com/user-attachments/assets/96c7be25-ade3-4851-a2cd-8735273c4c6f">

> If you specify a target size that is just enough to hold all the data pages, the result can be a file with no free space.

**Before Shrink:**

| $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ | $${\color{green}\text{Free Space}}$$ |

- **After Shrink with TRUNCATEONLY:** When you use DBCC SHRINKFILE with the TRUNCATEONLY option `DBCC SHRINKFILE (file_id, TRUNCATEONLY)`, it releases the unused space at the end of the file without moving any data pages. This means that the data pages remain in their original locations, and only the free space at the end of the file is released.

| $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ | $${\color{red}\text{Data Page}}$$ |

> If you don't move the pages, the space within the file might not be optimized because the data pages could be scattered throughout the file, leaving gaps of unused space in between. This can lead to fragmentation, where the data is not stored contiguously, potentially affecting performance. In this case, the free space at the end is released, but the data pages remain scattered, which might not be optimal for performance.
- After `DBCC SHRINKFILE (file_id, target_size_in_MB)`: In this case, the data pages are moved to fill the gaps, and the file is shrunk to the target size, eliminating free space.
| $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ |
3. **Monitor the Shrink Operation**: While the shrink operation is running, you can monitor for any blocking operations that might be affecting the process.
Expand Down Expand Up @@ -401,9 +418,18 @@ For Azure SQL Managed Instance, consider these strategies:
6. **Shrinking the Database**: Reclaim unused space with. Shrink the entire database to leave 10% free space.
```sql
DBCC SHRINKDATABASE (YourDatabaseName, 10);
```
**Before Shrink:**
| $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ | $${\color{green}\text{Free Space}}$$ |
After `DBCC SHRINKDATABASE (database_name, target_percent_free_space)`: The data pages are moved to reduce fragmentation, and the file is shrunk to maintain a small percentage of free space.
| $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{red}\text{Data Page}}$$ | $${\color{green}\text{Free Space}}$$ |
<img width="550" alt="image" src="https://github.com/user-attachments/assets/f906adcd-732e-4efa-849c-90d8fed2e9d3">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Connecting Microsoft Fabric to HDI Platform
# Connecting Microsoft Fabric to Azure HDI Platform

Costa Rica

[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
[brown9804](https://github.com/brown9804)

Last updated: 2024-11-19
Last updated: 2025-01-13

----------

Expand Down
23 changes: 20 additions & 3 deletions 0_Azure/2_AzureAnalytics/0_Fabric/demos/12_FabricReservation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Costa Rica
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
[brown9804](https://github.com/brown9804)

Last updated: 2024-11-19
Last updated: 2025-01-13

------------------------------------------

Expand All @@ -22,7 +22,7 @@ Last updated: 2024-11-19
## Wiki

<details>
<summary><b>Table of Contents</b> (Click to expand)</summary>
<summary><b>Table of Wiki</b> (Click to expand)</summary>

- [Microsoft Fabric trial capacity](https://learn.microsoft.com/en-us/fabric/get-started/fabric-trial)
- [Buy a Microsoft Fabric subscription](https://learn.microsoft.com/en-us/fabric/enterprise/buy-subscription)
Expand All @@ -37,6 +37,23 @@ Last updated: 2024-11-19

</details>

## Content

<details>
<summary><b>Table of Content</b> (Click to expand)</summary>

- [Wiki](#wiki)
- [Content](#content)
- [Overview](#overview)
- [Reservations & Capacity](#reservations--capacity)
- [Scope Assignment in Reservations](#scope-assignment-in-reservations)
- [How to make a reservation](#how-to-make-a-reservation)
- [Creating/Linking Fabric Capacity to Your Reservation](#creatinglinking-fabric-capacity-to-your-reservation)
- [Assign Workspace Capacity](#assign-workspace-capacity)
- [How to Change Scope of a Reservation](#how-to-change-scope-of-a-reservation)

</details>

## Overview

| **Benefit** | **Description** |
Expand Down Expand Up @@ -164,4 +181,4 @@ Overall process:
<div align="center">
<h3 style="color: #4CAF50;">Total Visitors</h3>
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
</div>
</div>
Loading

0 comments on commit 58f65c7

Please sign in to comment.