Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Server load?

Name: Anonymous 2006-02-22 4:11

I've been working with MySQL for a while now, but I've noticed it can be slow at times and most websites with dynamic content tend to be slow if there are a lot of users online. I've also noticed how on static websites things generally load more quickly. Static pages are, however, restricting, and this brings me to my question:

Would getting data from a combination of MySQL and text files put less strain on the server than just MySQL?

There are some little things which some people like to put into databases--the current users online, for example--which just seem silly to me and seem like they would put more strain on the server than just looking through a text file.

Name: Anonymous 2006-02-22 4:52

You could do this, but the effort required for a mixed solution would make it pointless in my opinion. Try optimizing your SQL queries and implementing a more aggressive caching strategy.

Name: Anonymous 2006-02-22 5:32

>>1
Just disable these little useless things

Name: Anonymous 2006-02-22 9:04

>>1
MySQL is way faster than reading from a text file... theoretically...

Name: Anonymous 2006-02-22 9:11

>>4

Surely that depends on the text file?

Name: Anonymous 2006-02-22 13:31

>>3
They're not little useless things though, they're just little things that I do not need to waste MySQL queries on--that is, if a text file would be better.

Name: Anonymous 2006-02-22 13:34

>>6
Benchmark it.

Name: 6 2006-02-22 14:38

>>6
And just to add onto this...My thinking initally was that if there are a lot of people using a part of the site which requires a lot of SQL (namely an imageboard or forum) then I don't want to waste any SQL queries/slow the database down.

Name: Anonymous 2006-02-23 13:12

>>6
It wouldn't be really better, unless you can cache them (and you can cache them in the database too).

#include >>7

Anyways, a database is much faster than you think; benchmark it because if you have performance problems my experience says it's most likely due to the application server (PHP or whatever) taking the CPU time itself. And you can always scale.

Name: Anonymous 2006-02-24 13:12

| Anyways, a database is much faster than you think;
You haven't tried Oracle, have you? And the legions of "database programmers"

Name: Anonymous 2006-02-25 10:46

>>10
I didn't mess with Oracle much, but I'm currently working on a PHP-based portal. The main page makes well over a hundred queries, and is served in 0.25 seconds. I once thought it was insane and it was making the portal slow, so I worked on a hack to save 15 queries. It was then served in 0.24 seconds.

Name: Anonymous 2006-02-25 10:46

>>11
Oh, I forgot to say, that's using MySQL.

Name: Anonymous 2006-02-27 7:54

php has to load up and parse pages as you access them as well, this can also be cached but it does give a bit of a performance hit.

you may consider running some sort of site-wide caching, which will capture the output of pages and essentially serve up static content unless stuff changes - this will help with commonly accessed pages.

Name: Anonymous 2009-01-14 4:26

Caching is useless for overly dynamic content. For everything else it increase performance

Name: Anonymous 2010-11-14 3:43

Name: Anonymous 2011-02-03 7:27

Name: Anonymous 2011-02-03 8:36

Name: Anonymous 2011-02-04 12:07

Name: Anonymous 2012-03-22 12:55

OP has probably been here only half a year, /prog/ was more or less shit all the fucking time.
Sure there were alot of funny moments on /prog/ but most of it was and is shit.

Name: Anonymous 2012-03-22 13:09

you can move little things from server side to client side, after a little handshake to secure the deal a little, keeping the actual non-content from having to be queried, things like account details and preferences

Name: Anonymous 2012-03-22 13:19

dubs load

Name: Anonymous 2012-03-22 13:24

What's the server load?

Don't change these.
Name: Email:
Entire Thread Thread List