הצטרפו לקבוצות שלנו לקבלת עדכונים מרוכזים פעם בשבוע:

ווטסאפ:
http://wa.dwh.co.il
טלגרם:
http://telegram.dwh.co.il

זמן ריצה איטי בשאילתה דרך BO

More
13 years 5 months ago #7776 by נתן
מקרה מוזר קורה לי על השרת

בהרצת שאילתה דרך SAP BO אני רואה שזמן הריצה הוא קצת יותר מ-6 דקות.

לקחתי את השאילתה לבדיקה על מנת לבדוק האם אפשר לשפר זמני ביצוע.

להפתעתי בהרצת אותה שאילתה באופן ידני דרך Menegment Studio זמן הריצה הוא כעשירית שניה. מיותר לציין שאין כל דרך לשפר את השאילתה מעבר לכך.

מה יכולה להיות הסיבה שבהרצה על ידי תוכנה חיצונית השאילתה תיהיה כבדה כל כך (סה"כ 500 רשומות היא מחזירה)?

האם אני יכול לבדוק את זה? האם אפשר לשפר את המצב?

בבדיקה שביצעתי יחד עם DBA הוא הציע לי לשלוח את השאילתות יחד עם With(nolock) בשאילתה אל הDB
הכיצד אני יכול לבצע זאת עם BO?

לעזרתכם אודה.

נתן.

Please התחברות to join the conversation.

More
13 years 5 months ago #7777 by אלון צוקלר
שאילתה דרך ה MS משתמש בסטטיסטיקה של ה DB , דרך ה USER BO יכול להיות שבמקרה חד פעמי המנוע לא השתמש בסטטיסטיקה, תריץ כמה פעמים דרך ה BO , אתה יכול להפעיל Profiler ולעקוב אחר הסיפור.
יש גם הרבה דברים שתלויים ב Where clause האם הוא מאבד אינדקס בגלל שהשאילתא לא בדיוק כתובה אותו דבר. תנסה גם custom SQL האם אותה הבעיה קיימת.

Please התחברות to join the conversation.

More
13 years 5 months ago #7778 by תמיר
הי,

יש מצב שההסבר לכך הוא הרבה יותר פשוט- הMS שמר את התוצאות בתוך הCache, כך שבהרצה הבאה (ב management studio) השליפה הייתה בתוך הCache!

תעשה משהו פשוט לבדיקה:

תריץ שאילתא דומה (אך אחרת) וכבדה בBO.

לאחר מכן, תריץ את אותה שאילתא שוב בBO

ותראה האם יש פער בזמן ההרצה.

תמיר

Please התחברות to join the conversation.

More
13 years 5 months ago #7780 by Me
האם יש GROUP BY בשאילתא
שים לב ש BO מחכה עד אשר הכל חוזר מה DB

Please התחברות to join the conversation.

More
13 years 5 months ago #7788 by נתן
אז ככה, קודם כל תודה לכולכם על התגובות.
השאילתה היא בדיוק אותה שאילתה,
אני בדקתי אותה על הSQL כשהיא רצה מתוך הBO.

הפתרון הוא באמת היה קטע של lock
בדקתי עם SAP ומצאתי לכך פתרון.
1344187 - How To Force The Business Objects Reports And Queries Not To Lock Database Tables
Symptom
How to avoid database table locking while running WebIntelligence reports or DesktopIntelligence reports created on a universe.
Environment
• SAP BusinessObjects Enterprise XIR2
• SAP BusinessObjects Enterprise XIR3.0
• SAP BusinessObjects Enterprise XIR3.1
• SAP BusinessObjects Enterprise BI 4
Reproducing the Issue
1. Run a long running Web Intelligence report
2. Run a second Web Intelligence report.
3. Note the second report waits for the first to complete.
Cause
By default the database transaction level in a Universe connection is set to the Isolation Level ‘Read Committed’, which applies a read lock on the database tables while running the reports. For the Reporting database connections it is possible to change the transaction level.
NOTE: It is currently only possible to set a global parameter for each database reporting used. This cannot be set at the universe level or at the connection level. This does not apply to the CMS database!
Resolution
Log on to the Business Objects Server machine and apply the following settings to set ‘Transaction Isolation Level’ for Business Objects
1) To force Business Objects not to lock SQL server database tables we have to set its isolation level to ‘READ UNCOMMITTED’.
2) To set this you have to modify/add the following parameter in rdbms.sbo data access configuration file based on the connection used at universe level. This file may be different depending on the database connection. For example Oracle will be oracle.sbo. For MSSQL – odbc.sbo (if using ODBC connection type) , oledb.sob (if using OLEDB connection)
<Parameter Name="Transaction Isolation Level">READ UNCOMMITTED</Parameter>
3) <rdbms>.sbo file can be found in the following directory, please take a back of the existing file before you make the changes mentioned
R2: <Installation Directory>:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\win32_x86\dataAccess\connectionServer\rdbms
R3: <Installation Directory>:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\rdbms
BI4: <Installation Directory>:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\dataAccess\connectionServer\rdbms
4) To make these changes effect, you have to restart ‘CMS server’, ‘the Connection Servers’, ‘Webi Report Server’ from ‘Central Configuration Manager’ (CCM).

בנתיים נראה שזה פועל.

Please התחברות to join the conversation.

More
13 years 5 months ago #7791 by תמיר
נתן ,

תודה ששיתפת אותנו בפתרון. יחד עם זאת, אני ממליץ לך בחום לפני שאתה מתחיל עם כל הworkaround האלה, לבצע מה שכתבתי. הפתרון יכול להיות הרבה יותר פשוט ממה שנראה. :Wow:


תמיר

Please התחברות to join the conversation.

More
13 years 5 months ago #7793 by נתן
תמיר,
ברור שכבר בדקתי את הדברים האלה :-)
מדובר בכמה דוחות קטנים הרצים כמה פעמים ביום.
ככה שעניין הcatch היה אמור להסתדר אחרי פעם פעמיים, לא?
תודה בכל אופן.
אני משתף פה כי אצלי זה פעל(אבל קצת מסובך לביצוע)

Please התחברות to join the conversation.

More
13 years 5 months ago #7794 by תמיר
:love: :love: :love: :love: :love: :love: :love: :love: :love: :love:

Please התחברות to join the conversation.

Moderators: Yoav
Time to create page: 0.239 seconds