473,909 Members | 5,624 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 1807
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
1301
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
1054
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
1798
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 field or column whose values are all (and will be) different in every row, is that what a Primary Key...
2
1437
by: naveen322 | last post by:
what is the use of views, indexs and view and materialized view & index and bit map index
4
3145
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 thought the primary key was nothing more than a constraint on what data can be entered into the...
0
10037
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11348
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10540
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8099
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5938
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6140
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3359
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.