Bandwidth question

Discussion in 'PHP' started by ads2help, Mar 4, 2009.

  1. #1
    Does running a mysql query eats a lot of bandwidth?

    How if I compare with the bandwidth used when loading images?

    Thank you.
     
    ads2help, Mar 4, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    It depends on the query. If for example you fetch images from mysql database it can take bandwidth.
     
    buldozerceto, Mar 4, 2009 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It doesn't use any bandwidth at all unless your database is located on a different server from your web site.

    If they are on the same server, then zero bandwidth used for a MySQL query.
     
    SmallPotatoes, Mar 4, 2009 IP
    ads2help likes this.
  4. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #4
    If you display the results in the output, then bandwidth is used.
     
    Kaizoku, Mar 4, 2009 IP
  5. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That has nothing to do with whether or not a MySQL query was executed.
     
    SmallPotatoes, Mar 4, 2009 IP
  6. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Well Thanks guys.

    I think I got my answers here.

    Thank you!
     
    ads2help, Mar 5, 2009 IP