Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread EDB: Temporary Table and Memory DB
Mon, Jan 25 2010 7:22 AMPermanent Link

durumdara
Hi!

I want to realize a local tables as in our DBISAM products (these temp tables created for faster access (process
something) and for decrease network usage).

But I'm confused a little bit, because options are multiplied now.
In the DBISAM product I created a link to user tempdir, and for new local tables I generate uid filename.

But there are many options.

1.) Temporary table.
This is a memory table representation in EDB (except this not placed in memory)?
When the table destroyed? On client destroy?

2.) Memory database.
As I see this DB placed fully in the memory with all things.
I want to ask that this mode have "flushing to disk" capability or it can fullfill the memory if I working with many data
(OM error)?

My experience was that if more processes are ask for new files, sometimes the "Exists" not working and I got error.
So I search for a possibility to handle tables simply, but without memory limitations.

Thanks for your help:
  dd
Mon, Jan 25 2010 8:21 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

durumdara

>1.) Temporary table.
>This is a memory table representation in EDB (except this not placed in memory)?
>When the table destroyed? On client destroy?

Its removed either when you delete it, or the app closes normally.

>2.) Memory database.
>As I see this DB placed fully in the memory with all things.
>I want to ask that this mode have "flushing to disk" capability or it can fullfill the memory if I working with many data
>(OM error)?

Depends what you mean by "flushing to disk". They use RAM and swop file, but that's it. There's no option to simply say "save to disk", but you could use the normal SQL process CREATE TABLE AS


Roy Lambert [Team Elevate]
Mon, Jan 25 2010 8:46 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< 1.) Temporary table.
This is a memory table representation in EDB (except this not placed in
memory)? When the table destroyed? On client destroy? >>

A temporary table is destroyed when the last reference to the database in
which it was created is released.  So, basically on the last
TEDBDatabase.Close for a given physical database.

<< 2.) Memory database.
As I see this DB placed fully in the memory with all things.
I want to ask that this mode have "flushing to disk" capability or it can
fullfill the memory if I working with many data
(OM error)? >>

If there's any chance that you could cause a memory issue with too much
data, then you should just use a temporary table.  Temporary tables are very
fast and you don't have to worry about using too much memory.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image