sybanurag
(0 comments, 42 posts)
This user hasn't shared any profile information
Posts by sybanurag
Tuning with Data Cache
0Source: Sybooks
Below Data Cache configuration can improve the performance:
• Configure named data caches to be large enough to hold critical tables and indexes. This keeps other server activity from contending for cache space and speeds queries using these tables, since the needed pages are always found in cache. Can configure these caches to use the relaxed LRU replacement policy, reducing the cache overhead.
• To increase concurrency, bind a hot table to one cache and the indexes on the table to other caches.
• Create a named data cache large enough to hold the hot pages of a table where a high percentage of the queries reference only a portion of the table.
For example, if a table contains data for a year, but 75% of the queries reference data from the most recent month (about 8% of the table), configuring a cache of about 10% of the table size provides room to keep the most frequently used pages in cache and leaves some space for the less frequently used pages
• Assign tables or databases used in decision-support systems (DSS) to specific caches with large I/O configured.
This keeps DSS applications from contending for cache space with OLTP applications. DSS applications typically access large numbers of sequential pages, and OLTP applications typically access relatively few random pages.
• Bind tempdb to its own cache to keep it from contending with other user processes. Proper sizing of the tempdb cache can keep most tempdb activity in memory for many applications. If this cache is large enough, tempdb
activity can avoid performing I/O.
• Bind text pages to named caches to improve the performance on text access.
• Bind a database’s log to a cache, again reducing contention for cache space and access to the cache.
Statement Cache and SQL Query Plan
0As procedure cache stored the query plan of stored procedures similarly statement cache saves SQL text and SQL query plan previously generated for ad hoc SQL statements, enables ASE to avoid recompiling incoming SQL that matches a previously cached statement.
Basically Statement Cache is a part of Procedure Cache, when enabled the statement cache reserves a portion of procedure cache.
Procedure Cache and Query Plan
1ASE doesn’t contain any table which stores the Query Plans of stored procedure. Instead, Query Plans gets stored in procedure cache that is the part of max memory.
ASE maintains MRU/LRU (most recently used/least recently used) algorithm. Stored procedures generally preferred over separate SQL statements because when users execute stored procedure, Adaptive server search procedure cache for existing query plan. If it is available then execution begins.
If Query plan is not available or all copies are in use, if multiple users are executing same stored procedure at a time then multiple copies of query plan will be available in procedure cache until size of cache is supporting, then query tree for the procedure is read from the sysprocedures table . Then query tree is then optimized, based on the parameters passed to the procedures and converted into query plan and then execution begins.
Database device and segment
0For Adaptive Server, devices provide a logical map of a database to physical storage, while segments provide a logical map of database objects to devices.
Adaptive Server keeps track of the various pieces of each database in master.dbo.sysusages. Each entry in sysusages describes one fragment of a database. Fragments are a contiguous group of logical pages, all on the same
device, that permit storage for the same group of segments. Fragments are also known as “disk pieces.”
Source: Sybooks.sybase.com
Stock Market Opening Timings With Reference To India Time
1North and South America
S&P – US : 19:00 PM
Mexican Bolsa -Mexico : 18:00 PM
Brazil Bovespa : 19:30 PM
NASDAQ : 7:00 P.M.
NYSE: 8:00 P.M.
Europe
FTSE100 -UK : 21:10 PM
DAX – Germany : 21:00 PM
CAC 40 – France : 21:00 PM
Asia
Shanghai Composite – China : 07 :00 AM
Hang Seng – Hong Kong : 07 :00 AM
Nikkei – Japan : 07 :00 AM
Recent Comments