473,386 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

indexs, primary and such

I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds
for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response times. I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!
Jul 19 '05 #1
9 1772
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds
for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response times. I think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field with a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!

Jul 19 '05 #2
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds
for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response times. I think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field with a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!

Jul 19 '05 #3
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds
for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response times. I think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field with a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!

Jul 19 '05 #4
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response
times. I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!


Jul 19 '05 #5
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response
times. I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!


Jul 19 '05 #6
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3 seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.

I'm looking for the best way to create my indexes for fast response
times. I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!


Jul 19 '05 #7
EnToonE -
great - did you see any performance change ???
lemme know [though its hard for 200 records to time it accurately]
mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:m1**********************@newssvr13.news.prodi gy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3

seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.
I'm looking for the best way to create my indexes for fast response

times.
I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!



Jul 19 '05 #8
EnToonE -
great - did you see any performance change ???
lemme know [though its hard for 200 records to time it accurately]
mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:m1**********************@newssvr13.news.prodi gy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3

seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.
I'm looking for the best way to create my indexes for fast response

times.
I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!



Jul 19 '05 #9
EnToonE -
great - did you see any performance change ???
lemme know [though its hard for 200 records to time it accurately]
mondo regards [Bill]
--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:m1**********************@newssvr13.news.prodi gy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@advmed.com> wrote in message
news:Ng****************@newssvr24.news.prodigy.com ...
EnToone -
basically any column that I would use as part of the record selection
criteria -
i.e. WHERE clauses
JOIN criteria
would be a good column to index on. So map out what you want to do, on
paper, with your select statements and study your where clauses and join
criteria - then index those columns.

let me know how it goes for you .
mondo regards [Bill]

--
William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
email.
FREE LONG DISTANCE -> mailto:ex********@efgroup.net
mySql / VFP / MS-SQL
"entoone" <en*****@pacbell.net> wrote in message
news:BM******************@newssvr21.news.prodigy.c om...
I have a very small db of only like 15 files, and with 120 records.

If I do a query from the page, via a php file it seems to take 2-3

seconds for the results to come up.
I'm anticipating having a lot more records, upwards of 300-800 records.
I'm looking for the best way to create my indexes for fast response

times.
I
think right now that the performance isn't that slow.

My primate key is presently set to ID which is an autoincremting field

with
a length of 6.

I do have queries that call for records that match a state also.

Any suggestions? thanks for your time!



Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Cecil Brand | last post by:
Hi, I was wandering is there an easy way to rebuild indexs on tables I have the .frm and .MYD files. I read in the mysql manuals about backup_tables and Restore_table that rebuild the index...
0
by: Cecil Brand | last post by:
Hi, I was wandering is there an easy way to rebuild indexs on tables I have the .frm and .MYD files. I read in the mysql manuals about backup_tables and Restore_table that rebuild the index...
4
by: Mavis Tilden | last post by:
Hi all, So I've been reading the newsgroups, and reading a few books trying to learn SQL and SQL Server 2000. The books tell me I need a Primary Key, and that every table should have one. I know...
2
by: naveen322 | last post by:
what is the use of views, indexs and view and materialized view & index and bit map index
4
by: codefragment | last post by:
Hi I thought that given a table with an index, primary key and clustered index any non clustered index look ups would go via the clustered index and the primary key is irrelevant? (sql server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.