Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

Creating SQL table indexes to improve performance

Posted on by 16
Hello, what are the Pros and Cons to adding them (for GP 18.5)?
Anyone experience any issues?
 
fyi we just upgraded GP so another upgrade is unlikely for years
 
 
CREATE INDEX [idx_iic_GL30000_001] ON [IIC01].[dbo].[GL30000] ([ACTINDX]) INCLUDE ([JRNENTRY], [SOURCDOC], [REFRENCE], [DSCRIPTN], [TRXDATE], [ORGNATYP], [SERIES], [DEBITAMT], [CRDTAMNT])
CREATE INDEX [idx_iic_IV00200_001] ON [IIC01].[dbo].[IV00200] ([SERLNMBR], [SERLNSLD])
CREATE INDEX [idx_iic_SOP10104_001] ON [IIC01].[dbo].[SOP10104] ([SOPNUMBE], [DELETE1],[PRCHLDID]) INCLUDE ([USERID], [HOLDDATE], [TIME1])
CREATE INDEX [idx_iic_SOP10201_001] ON [IIC01].[dbo].[SOP10201] ([SOPNUMBE]) INCLUDE ([LNITMSEQ], [SERLTNUM], [DATERECD], [BIN])
CREATE INDEX [idx_iic_SOP10201_002] ON [IIC01].[dbo].[SOP10201] ([SOPTYPE]) INCLUDE ([SOPNUMBE], [LNITMSEQ], [SERLTNUM])
CREATE INDEX [idx_iic_SOP30200_001] ON [IIC01].[dbo].[SOP30200] ([DOCDATE]) INCLUDE ([SOPTYPE], [SOPNUMBE], [DOCID], [QUOEXPDA], [ReqShipDate], [BCHSOURC], [BACHNUMB], [CUSTNMBR], [CUSTNAME], [CSTPONBR], [PROSPECT], [PRSTADCD], [DOCAMNT], [SLPRSNID], [VOIDSTTS], [ALLOCABY], [CURNCYID], [SOPSTATUS], [SHIPCOMPLETE], [WorkflowPriorityCreditLm], [WorkflowPriorityQuote])
CREATE INDEX [idx_iic_SOP60100_001] ON [IIC01].[dbo].[SOP60100] ([SOPNUMBE], [LNITMSEQ]) INCLUDE ([SOPTYPE], [GLPOSTDT])
 
CREATE INDEX [idx_iic_Trigger_001] ON [ManagementReporter].[Scheduling].[Trigger] ([StartBoundary]) INCLUDE ([Id], [Type], [UnitOfMeasure], [IsEnabled], [EndBoundary], [RecurrenceLimit], [Interval], [DaysOfWeek], [DayOfMonth], [WeekOfMonth], [MonthOfYear], [OnlyWeekday], [TimeZoneId], [RunImmediately], [Version])
  • Creating SQL table indexes to improve performance
    Where is the registration of that expense located?
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,831 Moderator on at
    Creating SQL table indexes to improve performance
    Without spending the time analysing the columns you have the indexes on....
     
    Adding indexes is allowed for GP tables, but they usually would need to be reapplied after an upgrade.
     
    Pros: Correct crafted additional indexes can improve performance when accessing the data using where clauses containing columns not in the existing indexes.
     
    Cons: The additional indexes will add a small overhead when adding/updating records and will make the database itself larger (depending on the columns in the index and the number of records).
     
    Usually performance is more important than space.
     
    Regards
     
    David 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans