SQL files larger than 5 megs
Moderator: SEOW Developers
SQL files larger than 5 megs
My SQL editor ask me if I want to load SQL files larger than 5 megs into memory. I always say yes but was wondering what other people do?
-
- Posts: 2237
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
-
- Posts: 162
- Joined: Wed 10 Jan 2007 1:13 am
- Location: Sydney, Australia
Update I have the choice of loading SQL files into memory or running them from the file. I checked and the SQL editor is up to 250 megs of memory when running the 43 meg export of my tables. While I have plenty of memory I really don't have a clue which is better, could someone care to take an educated guess? It now takes about 45 seconds to load into memory but I suspect it then executes across the Internet faster so it seems like it may be a wash to me.
-
- Posts: 2237
- Joined: Mon 08 Jan 2007 11:10 pm
- Location: Perth, Western Australia
You are being pretty vague, so it is hard to understand exactly what you are trying to do.
On Internet vs RAM vs disk: it is like comparing going to the fridge for a beer (RAM) or walking to the corner store for a beer (disk), or driving to the next state for a beer (Internet). All will get you what you want, but each has their own time penalty.
Any SQL operation run over the internet is thousands of times slower than a RAM operation or a local disk operation. If you are doing thousands of SQL operations over the Internet, it is unlikely that changing local ops from disk to RAM will materially affect the total time taken.
Cheers,
4Shades
On Internet vs RAM vs disk: it is like comparing going to the fridge for a beer (RAM) or walking to the corner store for a beer (disk), or driving to the next state for a beer (Internet). All will get you what you want, but each has their own time penalty.
Any SQL operation run over the internet is thousands of times slower than a RAM operation or a local disk operation. If you are doing thousands of SQL operations over the Internet, it is unlikely that changing local ops from disk to RAM will materially affect the total time taken.
Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer

SEOW Developer
