473,560 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1781
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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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*****@pacbel l.net> wrote in message
news:m1******** **************@ newssvr13.news. prodigy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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*****@pacbel l.net> wrote in message
news:m1******** **************@ newssvr13.news. prodigy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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*****@pacbel l.net> wrote in message
news:m1******** **************@ newssvr13.news. prodigy.com...
Thanks much for the post. I heard ya, and have done that. Thanks!
"swdev1" <ws**********@a dvmed.com> wrote in message
news:Ng******** ********@newssv r24.news.prodig y.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*****@pacbel l.net> wrote in message
news:BM******** **********@news svr21.news.prod igy.com...
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
1282
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 but is there any other way to rebuild them. I'm using Mysql 3.23.53a
0
1037
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 but is there any other way to rebuild them. I'm using Mysql 3.23.53a
4
1782
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 (I think) that a Primary Key is a special field that uniquely identifies each record or row within a table. My question is this: If I have a...
2
1424
by: naveen322 | last post by:
what is the use of views, indexs and view and materialized view & index and bit map index
4
3127
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 2000). A colleague has said that the primary key should be the clustered index because all index lookups will go via the primary key. Is this right? I...
0
7632
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7841
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7920
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5458
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5175
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2047
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1169
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.