dbTalk Databases Forums  

Memory and Read only database

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Memory and Read only database in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
joelm
 
Posts: n/a

Default Memory and Read only database - 06-21-2004 , 10:54 AM






My database is read only and it is 1GB of size. I got 4GB of RAM (Windows Advanced Server 2000) and /3GB switch is enabled.
I would like to load all my tables into memory and keep them there.
How do I do that?
Thank You.

Reply With Quote
  #2  
Old   
Douglas McDowell
 
Posts: n/a

Default Re: Memory and Read only database - 06-21-2004 , 02:42 PM






Sounds like a RDBMS question, you might be on the wrong forum.

But this might be what you are looking for "DBCC PINTABLE":
http://msdn.microsoft.com/library/de..._dbcc_30it.asp
But you still need to read the pages into the buffer cache (memory) and heed
this warning:


Caution Although DBCC PINTABLE can provide performance improvements, it
must be used with care. If a large table is pinned, it can start using a
large portion of the buffer cache and not leave enough cache to service the
other tables in the system adequately. If a table larger than the buffer
cache is pinned, it can fill the entire buffer cache. A member of the
sysadmin fixed server role must shut down SQL Server, restart SQL Server,
and then unpin the table. Pinning too many tables can cause the same
problems as pinning a table larger than the buffer cache.

--Douglas McDowell

"joelm" <joelm (AT) discussions (DOT) microsoft.com> wrote

Quote:
My database is read only and it is 1GB of size. I got 4GB of RAM (Windows
Advanced Server 2000) and /3GB switch is enabled.
I would like to load all my tables into memory and keep them there.
How do I do that?
Thank You.



Reply With Quote
  #3  
Old   
Abhinav Kumar
 
Posts: n/a

Default Memory and Read only database - 06-22-2004 , 12:17 AM



use DBCC PINTABLE
Syntax
DBCC PINTABLE ( database_id , table_id )

Arguments
database_id

Is the database identification (ID) number of the table
to be pinned. To determine the database ID, use the DB_ID
function.

table_id

Is the object identification number of the table to be
pinned. To determine the table ID, use the OBJECT_ID
function.

Abhinav Kumar
akumar (AT) itmag (DOT) com.au


Quote:
-----Original Message-----
My database is read only and it is 1GB of size. I got
4GB of RAM (Windows Advanced Server 2000) and /3GB switch
is enabled.
Quote:
I would like to load all my tables into memory and keep
them there.
How do I do that?
Thank You.
.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.