Index in RAM

Index in RAM

Post by Arsen Vladimirski » Sun, 13 Jan 2002 05:23:47



Hello,

Is there a way to load either INDEX or the whole table into RAM in SQL
Server 2000 Enterprise?

Thanks,
Arsen

 
 
 

Index in RAM

Post by Paul » Sun, 13 Jan 2002 05:34:15


Arsen,

See DBCC PINTABLE in SQL2k BOL.

Paul


> Hello,

> Is there a way to load either INDEX or the whole table into RAM in SQL
> Server 2000 Enterprise?

> Thanks,
> Arsen


 
 
 

Index in RAM

Post by Arsen Vladimirski » Sun, 13 Jan 2002 05:37:16


Hi Paul,

I read about it... But it looks like it simply does NOT flash the cache, but
it does not really load the data into RAM. Did you ever use it?

Thanks,
Arsen


> Arsen,

> See DBCC PINTABLE in SQL2k BOL.

> Paul


> > Hello,

> > Is there a way to load either INDEX or the whole table into RAM in SQL
> > Server 2000 Enterprise?

> > Thanks,
> > Arsen

 
 
 

Index in RAM

Post by Dinesh T » Sun, 13 Jan 2002 06:01:49


Arsen,

Its isnt practical to load the entire data into RAM.Just as the pages make a
visit to the cache they are just "pinned" in it instead of flushing it out.
Pinning  can be beneficial if the table is a small one and also frequently
accessed.
What exactly are you trying to achieve ?

Dinesh.


> Hi Paul,

> I read about it... But it looks like it simply does NOT flash the cache,
but
> it does not really load the data into RAM. Did you ever use it?

> Thanks,
> Arsen



> > Arsen,

> > See DBCC PINTABLE in SQL2k BOL.

> > Paul


> > > Hello,

> > > Is there a way to load either INDEX or the whole table into RAM in SQL
> > > Server 2000 Enterprise?

> > > Thanks,
> > > Arsen

 
 
 

Index in RAM

Post by Paul » Sun, 13 Jan 2002 06:06:34


No, I've never used it. But then we have 2 GB RAM in our machines,
(all our DBs together barely total 2 GB), and disk read activity
drops off to almost 0, after a couple of thousand queries after
starting the SQL Server.

My (admitedly limited) understanding of 'not flushed from cache'
is that these data pages remain in the SQL Server cache (memory),
and there is therefore no need to read them from disk.

Perhaps one of the gurus can enlighten us?

Paul


> Hi Paul,

> I read about it... But it looks like it simply does NOT flash the cache, but
> it does not really load the data into RAM. Did you ever use it?

> Thanks,
> Arsen



> > Arsen,

> > See DBCC PINTABLE in SQL2k BOL.

> > Paul


> > > Hello,

> > > Is there a way to load either INDEX or the whole table into RAM in SQL
> > > Server 2000 Enterprise?

> > > Thanks,
> > > Arsen

 
 
 

Index in RAM

Post by Umachandar Jayachandra » Sun, 13 Jan 2002 10:21:17


    It will not load the data. So what you do is the following:

dbcc pintable( 'tbl' )


datalength( t.col3 )
  from tbl as t

    The dummy query will load the data pages into memory & keep them there
till you unpin the table.

--
Umachandar Jayachandran
SQL Resources at http://www.umachandar.com/resources.htm
( Please reply only to newsgroup. )

 
 
 

Index in RAM

Post by Andrew J. Kell » Mon, 14 Jan 2002 05:47:40


Pinning it will just keep it there once it is accessed but will not load it
initially.  But if you access this data on a regular enough basis then it
will most likely stay in cache anyway.

--
Andrew J. Kelly,   SQL Server MVP


> Hi Paul,

> I read about it... But it looks like it simply does NOT flash the cache,
but
> it does not really load the data into RAM. Did you ever use it?

> Thanks,
> Arsen



> > Arsen,

> > See DBCC PINTABLE in SQL2k BOL.

> > Paul


> > > Hello,

> > > Is there a way to load either INDEX or the whole table into RAM in SQL
> > > Server 2000 Enterprise?

> > > Thanks,
> > > Arsen

 
 
 

1. How do I put INDEXES on RAM based TEMP_DB?

Gang

I posted a question the other day to the news groups about how to put a
SQL index on a different device. I was given the following sequence
and it worked very nicely.

use master
GO
alter database userdb on INDEXDEV = 100
GO
use userdb
GO
sp_addsegment indexes, INDEXDEV
GO
create index table1IDX on table1 (col1) on indexes
GO

However, although the INDEXDEV is on some fast SCSI-3 drives, I want even
more index building speed. So now I want to put the indexes on a device
that lives in RAM. I assumed I could do something like change INDEXDEV to
TEMP_DB (coz I have a 120mb RAM based TEMP_DB) but it didnt work.

Am I crazy or is this not possible? I am looking for blistering speed in
building these indexes (the data that the indexes are derived from is
static and the
indexes will be read only).

Can anyone help?

Bob

2. CO; Oracle DBA w/10.7 Apps

3. INDEX( index, index, ... )

4. AREV Indexing Problem

5. tempdb in Ram SQL 6.5

6. Importing Access 7 in Delphi 1.0?

7. Database on a RAM drive??

8. how to release server memory ?

9. TempDB in Ram

10. TempDB in RAM

11. Tempdb in RAM

12. Database servers with 1 gb or more ram...

13. WARNING:MS-SQL does NOT support 2 gigs of RAM