Solved

Frequently queried table

Posted on 2004-04-21
9
185 Views
Last Modified: 2010-04-05
Hi all. I have several SQL tables queried frequently. Can I do anything to store them in memory, not on my hard disk? This slows me down greatly.
0
Comment
Question by:hls1
9 Comments
 

Expert Comment

by:ben_afferson
ID: 10883039
Yeap, I’m interested too. I use tables to store preferences in most of my projects. RAM forever! :)
0
 

Accepted Solution

by:
eagle20001 earned 25 total points
ID: 10883053
The answer is simple – www.componentAce.com with their great product aka Absolute Database. The guys have developed something cool, I tell you. You’ll never regret that you work with it!
0
 

Expert Comment

by:mrnov1
ID: 10883067
AFAIK many DMS optimize most popular queries.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 11

Assisted Solution

by:shaneholmes
shaneholmes earned 25 total points
ID: 10883084
Borland has an example of implementing in-memory tables:

http://info.borland.com/devsupport/bde/delphifiles.html

In-Memory table example with source (Updated 02/17/98, Size 230,760 bytes)

In-Memory table example with source (Package Version) (Size 15,422 bytes)

In-Memory table example with source (Packaged EXE) (Size 22,528 bytes)
This examples takes a table, places all the information into an in-memory table, and then displays all the information in a string grid.

Hope this helps!

Shane
0
 

Expert Comment

by:eagle20001
ID: 10883085
AbsDB does it better, I’ve checked. More than +150% in performance.
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10883182
How do I implement In-memory table?

http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20068246.html?query=memory+tables&searchType=topic

Search on the Delphi Super Page (http://delphi.icm.edu.pl/ or the mirror http://sunsite.informatik.rwth-aachen.de/delphi/) for the Memory table component. I believe there's a MemoryTable component there. I just can't find it now... (But I'll keep on looking...)

There's a way to implement your own version, btw, but it requires the BDE and knowledge of the BDE API. Or you start at the lowest point: TDataset and create your own TDataset-compatible component. Both are harder than just finding this existing component... ^_^
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now