Hello:
I have created a SQL query that pulls data from the following four tables: RM00101, RM20101, RM20201, and CN00500.
The query is taking nearly two hours to execute and display its data in SQL Management Studio.
In researching, the majority of T-SQL experts advise placing indexes within these four tables.
Truthfully, I hesitate to do so for two reasons. First, I have read that having additional indexes can actually degrade SQL performance. Secondly, without the "supervision" of a Microsoft engineer, conducting modifications directly to the GP tables can corrupt those tables and, therefore, compromise GP.
Regardless, is there any harm of placing additional indexes into these tables? If so, per Microsoft Dynamics Best Practices, what is the way to go about doing this?
My query is, in essence, a big select statement. Would simply creating a stored procedure containing this query and executing the stored procedure allow for the data to be displayed much more quickly than two hours?
Thank you!
John