LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2009, 02:51 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
How exactly is a database indexed?


How exactly is a database indexed?

I have a database with over 700,000 records in it, and it is contantly creating a file in /tmp, up to 2GB and using up all the cpu.

Would indexing help with that problem?
 
Old 11-04-2009, 03:03 PM   #2
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
Nobody can answer your question fully without knowing WHAT database this is.
 
Old 11-04-2009, 04:03 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by pcunix View Post
Nobody can answer your question fully without knowing WHAT database this is.
And, even then, you may (almost certainly will) have several different indexing options.

If you're using a SQL-based data base, you can (for most such data bases) have several different indexes on the same table, each index "tuned" for specific queries. Generally, though, the design of a data base starts by analyzing the purpose for which the data base is being created, and the questions that the data will address, Then the data is separated into one of the normal forms (usually the third) and a "unique key" assigned to each row of each table. If this is done properly, then almost every query can be answered by combining information from the data base tables using the "unique key" values from the several tables used to answer the query.

Again, referring to SQL-based data bases, you can (usually) create a "view" of the data base for common queries, and index the view to speed recovery of specific rows from the view.
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename multiple files into indexed form tiaratiara Programming 1 02-27-2009 07:51 PM
Knowledge/Information personal searchable indexed database/ CAT sofwtare Kryptos Linux - Software 1 01-03-2008 09:07 AM
Problems getting my web server indexed in Google Doug52392 Linux - Server 4 10-29-2007 08:18 PM
Using ImageMagick Convert RGB -> indexed colors paulsm4 Programming 0 01-17-2006 04:06 PM
how to get indexed with google? servnov Linux - Networking 2 10-13-2004 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration