Speed Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    #1

    Speed Question

    I'm completely new to PHP, MySQL, and well, databases in general, so
    forgive me if this a n00b question ... Would MySQL be slow searching
    tens of thousands of records for 100 rows? For example, if "field1"
    equals "700" in a total of 100 rows, would MySQL be slow finding those
    values in a large database?
  • Aggro

    #2
    Re: Speed Question

    Jay wrote:
    [color=blue]
    > I'm completely new to PHP, MySQL, and well, databases in general, so
    > forgive me if this a n00b question ... Would MySQL be slow searching
    > tens of thousands of records for 100 rows? For example, if "field1"
    > equals "700" in a total of 100 rows, would MySQL be slow finding those
    > values in a large database?[/color]

    If you have an index in the field which you use for search, then time is
    usually about 0.0s. 10000 rows is a small database, queries will be
    pretty fast propably even without indexes if you only do this kind of
    queries:
    select * from tablename where field1='value';

    Comment

    • Jay

      #3
      Re: Speed Question

      Aggro <spammerdream@y ahoo.com> wrote in message news:<UJ6Hc.39$ lK1.29@read3.in et.fi>...[color=blue]
      > Jay wrote:
      >[color=green]
      > > I'm completely new to PHP, MySQL, and well, databases in general, so
      > > forgive me if this a n00b question ... Would MySQL be slow searching
      > > tens of thousands of records for 100 rows? For example, if "field1"
      > > equals "700" in a total of 100 rows, would MySQL be slow finding those
      > > values in a large database?[/color]
      >
      > If you have an index in the field which you use for search, then time is
      > usually about 0.0s. 10000 rows is a small database, queries will be
      > pretty fast propably even without indexes if you only do this kind of
      > queries:
      > select * from tablename where field1='value';[/color]

      Thanks, Aggro! I just wasn't sure because my dad works for IBM and
      says MySQL is a 'baby' database.
      Thanks a lot, you completely answered my question.

      Comment

      • Aggro

        #4
        Re: Speed Question

        Jay wrote:
        [color=blue]
        > Thanks, Aggro! I just wasn't sure because my dad works for IBM and
        > says MySQL is a 'baby' database.
        > Thanks a lot, you completely answered my question.[/color]

        Well I partly agree with yout dad. IMHO MySQL doesn't do the same as
        PostgreSQL or Oracle do, but in most of the cases it does enough. 10000
        rows is nothing for a baby database ;)

        Comment

        • John Doherty

          #5
          Re: Speed Question

          In article <2e96b949.04070 80619.1813ee5a@ posting.google. com>,
          jayssite@gmail. com (Jay) wrote:

          [color=blue]
          > Thanks, Aggro! I just wasn't sure because my dad works for IBM and
          > says MySQL is a 'baby' database.[/color]

          Well, then, get him to get you a license for DB2. :-)

          --

          Comment

          • John Doherty

            #6
            Re: Speed Question

            In article <2e96b949.04070 80619.1813ee5a@ posting.google. com>,
            jayssite@gmail. com (Jay) wrote:

            [color=blue]
            > Thanks, Aggro! I just wasn't sure because my dad works for IBM and
            > says MySQL is a 'baby' database.[/color]

            Well, then, get him to get you a license for DB2. :-)

            --

            Comment

            • Perttu Pulkkinen

              #7
              Re: Speed Question

              > > Thanks, Aggro! I just wasn't sure because my dad works for IBM and[color=blue][color=green]
              > > says MySQL is a 'baby' database.[/color]
              > Well, then, get him to get you a license for DB2. :-)[/color]

              Times they are a-changing! Before children begged money for driving license
              and then daddys car, now they want software license... I guess its more safe
              anyway! "Remember to end your queries before midnight!"




              Comment

              • Perttu Pulkkinen

                #8
                Re: Speed Question

                > > Thanks, Aggro! I just wasn't sure because my dad works for IBM and[color=blue][color=green]
                > > says MySQL is a 'baby' database.[/color]
                > Well, then, get him to get you a license for DB2. :-)[/color]

                Times they are a-changing! Before children begged money for driving license
                and then daddys car, now they want software license... I guess its more safe
                anyway! "Remember to end your queries before midnight!"




                Comment

                • steve

                  #9
                  Re: Re: Speed Question

                  "Jay" wrote:[color=blue]
                  > Aggro <spammerdream@y ahoo.com> wrote in message
                  > news:<UJ6Hc.39$ lK1.29@read3.in et.fi>...[color=green]
                  > > Jay wrote:
                  > >[color=darkred]
                  > > > I’m completely new to PHP, MySQL, and well, databases[/color][/color]
                  > in general, so[color=green][color=darkred]
                  > > > forgive me if this a n00b question ... Would MySQL be slow[/color][/color]
                  > searching[color=green][color=darkred]
                  > > > tens of thousands of records for 100 rows? For example, if[/color][/color]
                  > "field1"[color=green][color=darkred]
                  > > > equals "700" in a total of 100 rows, would MySQL be slow[/color][/color]
                  > finding those[color=green][color=darkred]
                  > > > values in a large database?[/color]
                  > >
                  > > If you have an index in the field which you use for search, then[/color]
                  > time is[color=green]
                  > > usually about 0.0s. 10000 rows is a small database, queries will[/color]
                  > be[color=green]
                  > > pretty fast propably even without indexes if you only do this[/color]
                  > kind of[color=green]
                  > > queries:
                  > > select * from tablename where field1=’value’;[/color]
                  >
                  > Thanks, Aggro! I just wasn’t sure because my dad works for IBM
                  > and
                  > says MySQL is a ’baby’ database.
                  > Thanks a lot, you completely answered my question.[/color]

                  Jay, mysql may be a "baby" database in some other aspects (e.g.
                  transaction processing- which it now has I believe, views, stored
                  procedures, etc.) but when it comes to SPEED, it is NO BABY--
                  partially because it has none of those bells and whisles.

                  There are many forums running having more than 2 million rows, and
                  huge number of concurrent users, all runnign on pc-based dedicated
                  servers (and not IBM mainframes!!).

                  --
                  http://www.dbForumz.com/ This article was posted by author's request
                  Articles individually checked for conformance to usenet standards
                  Topic URL: http://www.dbForumz.com/mySQL-Speed-ftopict125570.html
                  Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444552

                  Comment

                  • steve

                    #10
                    Re: Re: Speed Question

                    "Jay" wrote:[color=blue]
                    > Aggro <spammerdream@y ahoo.com> wrote in message
                    > news:<UJ6Hc.39$ lK1.29@read3.in et.fi>...[color=green]
                    > > Jay wrote:
                    > >[color=darkred]
                    > > > I’m completely new to PHP, MySQL, and well, databases[/color][/color]
                    > in general, so[color=green][color=darkred]
                    > > > forgive me if this a n00b question ... Would MySQL be slow[/color][/color]
                    > searching[color=green][color=darkred]
                    > > > tens of thousands of records for 100 rows? For example, if[/color][/color]
                    > "field1"[color=green][color=darkred]
                    > > > equals "700" in a total of 100 rows, would MySQL be slow[/color][/color]
                    > finding those[color=green][color=darkred]
                    > > > values in a large database?[/color]
                    > >
                    > > If you have an index in the field which you use for search, then[/color]
                    > time is[color=green]
                    > > usually about 0.0s. 10000 rows is a small database, queries will[/color]
                    > be[color=green]
                    > > pretty fast propably even without indexes if you only do this[/color]
                    > kind of[color=green]
                    > > queries:
                    > > select * from tablename where field1=’value’;[/color]
                    >
                    > Thanks, Aggro! I just wasn’t sure because my dad works for IBM
                    > and
                    > says MySQL is a ’baby’ database.
                    > Thanks a lot, you completely answered my question.[/color]

                    Jay, mysql may be a "baby" database in some other aspects (e.g.
                    transaction processing- which it now has I believe, views, stored
                    procedures, etc.) but when it comes to SPEED, it is NO BABY--
                    partially because it has none of those bells and whisles.

                    There are many forums running having more than 2 million rows, and
                    huge number of concurrent users, all runnign on pc-based dedicated
                    servers (and not IBM mainframes!!).

                    --
                    http://www.dbForumz.com/ This article was posted by author's request
                    Articles individually checked for conformance to usenet standards
                    Topic URL: http://www.dbForumz.com/mySQL-Speed-ftopict125570.html
                    Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444552

                    Comment

                    Working...