Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

09-12-2012 , 07:54 PM
Quote:
Originally Posted by daveT
How stupid is this?

PostgreSQL 9.2 comes out. I dump my current 9.1 db, uninstall, and now I have 9.2 on the computer. I'm going to create the tables and install the triggers, try to connect, and report back.

But 9.2 is 4x faster! and is support JSON (?)! and...
With all respect as a long-time and still-current psql user... who the flip uses psql who cares all that much about speed?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:12 PM
Quote:
Originally Posted by Neil S
Yeah but I don't think I can make a preorder work sadly. I want Verizon since AT&T LTE is nonexistent in western Loudoun County. So I want to switch.

Willing to give up my unlimited plan because AT&T has gone to war with it anyway, and it's only really of use at this point if I ever wanted to force an early exit at some point.
Need to pick a Canadian carrier in Vancouver... any suggestions?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:18 PM
Web Scale: I fully expect that one time I'll build something so totally awesome that I'll have 10 users. I want all of them to think: "Wow, this application is so fast and responsive. Are they using MongoDB?"

Look at the press release: http://www.postgresql.org/about/news/1415/

a leap forward in performance, scalability

addition of linear scalability to 64 cores, index-only scans and reductions in CPU power consumption, PostgreSQL 9.2 has significantly improved scalability

Improvements in vertical scalability

the addition of cascading replication enables users to run even larger stacks of horizontally scaled servers


C'mon: this doesn't make you feel warm and fuzzy inside?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:18 PM
Quote:
Originally Posted by daveT
How stupid is this?

PostgreSQL 9.2 comes out. I dump my current 9.1 db, uninstall, and now I have 9.2 on the computer. I'm going to create the tables and install the triggers, try to connect, and report back.

But 9.2 is 4x faster! and is support JSON (?)! and...
isn't the correct procedure to install 9.2 first then use it's newer pg_dump on the old database? also pg_dumpall should include everything, tables and triggers for sure!

either way I'd rather not uninstall before the new version was up and running 100%
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:30 PM
Quote:
Originally Posted by MrWooster
Need to pick a Canadian carrier in Vancouver... any suggestions?
Looks like you have a few choices if this is accurate.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:33 PM
Quote:
Originally Posted by Neil S
With all respect as a long-time and still-current psql user... who the flip uses psql who cares all that much about speed?
what do you use if you care about speed?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:43 PM
Quote:
Originally Posted by gaming_mouse
what do you use if you care about speed?
Well traditionally my answer to that is MySQL, because the last time I researched it they made some pretty strong tradeoffs in favor of speed.

Been a while since I made a decision like that though to be honest. The last umpteen million web deployments I've done have been Wordpress/MySQL.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:46 PM
Quote:
Originally Posted by _dave_
isn't the correct procedure to install 9.2 first then use it's newer pg_dump on the old database? also pg_dumpall should include everything, tables and triggers for sure!

either way I'd rather not uninstall before the new version was up and running 100%
I have no idea what the correct procedure. According to the docs, the "traditional method" is to do the dump. I wasn't sure if that meant using upgrade is discouraged, but there was an underlying suggestion that using pg_upgrade isn't as dependable as a dump.

I mean, I don't have any important data, and I have all the dependencies saved in a sql file anyways, so if the dump fails and I have to revert, it's pretty simple.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:47 PM
Actually one thing I'd take a serious look at, depending on the size of the data set involved, would be sqlite. If it fits in cache it's effectively in memory.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:52 PM
Quote:
Originally Posted by MrWooster
Need to pick a Canadian carrier in Vancouver... any suggestions?
Buy a tube of lube.

Canadian cell phone carriers and plans blow chunks compared to most of the rest of the world.

FTR I use Bell. I find them slightly less horrible than Rogers.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 08:55 PM
To be fair, at the level I'm at, there's no justifiable reason to pick any RDBMS over another. I do know that PostgreSQL has gotten considerably faster and MySQL has traded its speed for more features. I'm under the impression that the speed differences at this point are negligible.

I think this is an interesting article on the history and how they are different:
http://ledgersmbdev.blogspot.co.uk/2...gresql-vs.html

Some SO stuff with speed-test links.
http://stackoverflow.com/questions/8...ns-w-gis-speed

I'm not convinced either way.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 09:11 PM
Heh. When I actually got to stretch my legs, and wrote my calorie counter tool with Ramaze, going web based so that I could easily keep on my plan on a trip, I just used MySQL because I didn't feel like putting psql on my web server. That made me sad. I wish I'd thought of sqlite for that project. Then I would have gotten completely out of the rut for a change.

Oh well, at least I got to use Ruby and sqlite for my MailChimp segmenter. Which reminds me, I need to run a segment tonight...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 09:18 PM
I use Koodo (piggy backs on Bell's network) and have been quite happy with them.

I *hate* Rogers & Bell.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 09:23 PM
Quote:
Originally Posted by Neil S
Well traditionally my answer to that is MySQL, because the last time I researched it they made some pretty strong tradeoffs in favor of speed.

Been a while since I made a decision like that though to be honest. The last umpteen million web deployments I've done have been Wordpress/MySQL.
You may be thinking of the improvements to InnoDB engine. In MySQL 5.5 InnoDB became the default engine, and it's much improved.

The tradeoff you may be thinking of is the innodb-flush-log-at-trx-commit=2 setting. If you don't need ACID compliance and you can survive losing the last second of transactions in a crash, there are big performance gains from setting this to 2.

Here's a white paper Oracle released, but the highlights are 200% performance and scalability gain in MySQL 5.5 over 5.1 for read only activity and 370% gain for read/write activity.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 09:32 PM
Nah I'm talking about before InnoDB, when they only had one engine, but yes the tradeoff was not exactly trying to be close to ACID compliant.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-12-2012 , 10:23 PM
The database movement went off without a hitch... almost. The triggers didn't migrate, but I had them stored anyways so that was not a huge hassle.

I have no idea why though, that I update the database, the data goes into the database, yet I get a null pointer exception...?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 02:52 AM
Heh whee. No switching providers for me after all. AT&T deployed LTE into Leesburg in the last month. Still won't have it at the office, but it means 2 hours of my 2.5 hour commute are now LTE covered under AT&T.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 04:32 AM
Maybe someone who does Java interop to databases with the JDBC can answer this one:

I have a form field, and namely the issue seems to revolve around a numeric (int) field. Everything in the fields insert into the database, but I get a null pointer exception. Is there any reason that something like this is happening specifically with numeric (int) fields?

Should I just override this exception and assume everything is going okay?

I guess one issue is that the lazy seq in Clojure creates problems. I've attempted to create local bindings to the values before they are inserted, but I guess this isn't working.

I guess I'll finish the last of this stuff tonight and research this later, but is Java database work really this painful?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 08:46 AM
Totally random suggestion - check anywhere that autoboxing (or unboxing I guess) is happening. If your database field can be null and you're trying to treat the value as an int - as opposed to an Integer - I think you'll get a npe.

I remember spending an hour or so not too long ago with a weird null pointer exception that was caused by autoboxing.

Edit: As for the general Java database work comment - maybe? It use to be pretty painful when you had to a lot of stuff manually but I think drivers have gotten a lot better and ORMs can sometimes avoid pain. I've been using Mongo the last couple of years and their driver is quite good. I can't remember any real problems with it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 11:12 AM
Quote:
Originally Posted by jjshabado
Buy a tube of lube.

Canadian cell phone carriers and plans blow chunks compared to most of the rest of the world.

FTR I use Bell. I find them slightly less horrible than Rogers.
Quote:
Originally Posted by Neko
I use Koodo (piggy backs on Bell's network) and have been quite happy with them.

I *hate* Rogers & Bell.
Ye, I am on Chatr at the moment which seems to be the only vaguely cheap network (part of Rogers), but even that is a ripoff.

Was looking at Bell and will probably go with them but fk me phones are expensive here!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 01:42 PM
Quote:
Originally Posted by Neil S
my 2.5 hour commute
congrats again on your big move.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 01:53 PM
Quote:
Originally Posted by tyler_cracker
congrats again on your big move.
Thanks

I needed out of there so bad.

I'm very happy in VA.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 01:58 PM
neil, does that mean you drive 5 hours a day? or 2.5 hours total? or is it on a train?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 02:28 PM
Quote:
Originally Posted by gaming_mouse
neil, does that mean you drive 5 hours a day? or 2.5 hours total? or is it on a train?
2 trains, 2 buses. 2.5 hours one way.

But it's an average of only 2 days a week that I actually have to go. This week it'll be 3. They never make me do back to backs either.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-13-2012 , 02:31 PM
Quote:
Originally Posted by Neil S
2 trains, 2 buses. 2.5 hours one way.

But it's an average of only 2 days a week that I actually have to go. This week it'll be 3. They never make me do back to backs either.
wow that seems insane. can you work on a laptop?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m