meritt_zare

- friends
380 link karma
1,459 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • One-Year Club

    Verified Email

It takes almost 4 minutes to insert about 15k rows into a MYSql database via PHP, is this normal? by 420_FarmAssistin PHP

[–]meritt_zare 8 points9 points ago

Don't use PHP is my suggestion. Just call MySQL directly with a 'LOAD DATA INFILE' command. If the data isn't in a suitable format, use PHP to pre-process the file and do the above with the result.

There are numerous other ways you could speed things up within the realm of PHP but the reality is it's smarter to not bring PHP into the picture when it isn't necessary.

Rideshare Roadtrip by shame_yin Portland

[–]meritt_zare 1 point2 points ago

From purely a time savings + cost standpoint, I'd suggest simply flying.

  • Flying PDX to SAN: $250 (~3 hrs each way)
  • Amtrak PDX to SAN: $395 (~30 hrs each way)
  • Driving 30mpg @ $4.50/gal: $330 (~19 hrs each way)

Depends on how you value your time but I think the 2 days you'd be saving would make up the difference in potential cost savings by getting a roadtripping partner. This of course isn't including food + drinks for the trip, potential mechanical problems enroute, etc.

Roadtrips are definitely awesome but expensive and it sounds like you're very cost sensitive, so I'd evaluate the benefits of driving vs flying a bit more.

Vivid Blue, Crater Lake, Oregon by soapbubblesin pics

[–]meritt_zare 2 points3 points ago

http://www.craterlakelodges.com/volcano-boat-cruises-8644.html

They allow 1 boat - The one which ferries people to/from wizard island

How to make a site really freaking fast by sidcool1234in programming

[–]meritt_zare 5 points6 points ago

What's funny is if they asked someone who knew what they were doing, and enabled APC from day one, they'd have dropped it from 6 seconds to 1.5 seconds immediately. Then they probably wouldn't have spent the weeks doing all the micro-optimization.

Don't get me wrong, these are all important things to do, but it's far more important to understand the biggest bottleneck and tackle it first.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]meritt_zare 0 points1 point ago

This is an excellent presentation about "how to kill performance" by a well-respected PostgreSQL expert: http://thebuild.com/presentations/10-ways-to-kill-performance.pdf

See slide 28 onward. Actually read the entire thing.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]meritt_zare 3 points4 points ago

I'll gladly take that criticism over pandering for some points on a website.

Reddit doesn't really support useful discussion threads.. so this won't go too far.. but I've came to this 'arrogance' by getting tired of hearing the same repeated viewpoint the rails community tends to exhibit over the past few years:

  • OMG! I just found some_new_regurgitated_technology_that_has_existed_for_decades and it's going to change the world! Many of the ideas that the author talks about in his article are perfect examples of this.

  • I understand the hypocrisy here but: The general arrogance and inability to accept outsider's viewpoints that most of this community tends to promote.

  • The entire 'Brogrammer' mentality, which I attribute primarily to the macbook-pro toting Rails community, and to a lesser extent, the more generally more enlightened and wider Ruby community.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 0 points1 point ago

Yeah... I tend to say 'night' when I really mean 'evening'.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 1 point2 points ago

I didn't post the second photo but yes, the little guy hissed at me, and I wasn't sure, so I took a defensive posture: http://i.imgur.com/7pW1T.jpg

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]meritt_zare 11 points12 points ago

Yes.

However with on-going forks of MySQL which phenomenally kick-ass such as Percona and MariaDB I'm not too worried about the database as a whole. Oracle will ruin it, but Percona and MariaDB will continue to do amazing things.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]meritt_zare 4 points5 points ago

If reddit allowed an option to post anonymously or turn off karma/upvotes/downvotes, I'd enable it immediately.

My dislike of the rails community the the current stock of "programmers" the tech bubble has enabled and nurtured has absolutely nothing to do with Reddit karma.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 0 points1 point ago

If you get ahold of the owner's contact info, feel free to PM me, can contact her directly if Honk is spotted again. I work from home and have two very watchful dogs that (annoyingly) alert me to every single passerby.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 0 points1 point ago

Yes, actually, very close. That photo was taken last night around 8pm at SW Lobelia St & SW 7th Ave. Honk was traveling southbound on SW 7th ave after posing for a photo with me.

MySQL is done. It's the Postgres Age. by dickeytkin programming

[–]meritt_zare 12 points13 points ago

This isn't even fanboyism. This kid a fine example of your standard rails idiot.

PostgreSQL is a great open-source product but it sure as fuck doesn't need people like this as its cheerleader. Half the things he points out in here (Queueing? Are you fucking kidding me?) every seasoned database-veteran would just shake their head in shame.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 0 points1 point ago

Might be this one. I live really close to Taylor's Ferry & Terwilliger.

Peacock exploring SW neighborhood last night by meritt_zarein Portland

[–]meritt_zare[S] 5 points6 points ago

Live in SW near Lewis & Clark. Dogs were going crazy last night, a Peacock was just walking down the street. Went outside for a quick photo opportunity with him. Then he went about his business, seemed to have a destination in mind and wasn't worried nor interested in me.

Gotta love Portland.

React - a pure PHP Node.js competitor by eugene-din PHP

[–]meritt_zare 0 points1 point ago

Nice effort, like to see this type of thinking.

However I have to say that simply using nginx + php-fpm + apc is going to give you basically the same feature set and speed of node.js without trying to make PHP do the event loop.

What exactly is your motivation for doing this? Just because?

Performance Tuning Tips for PHP.INI by systematicalin PHP

[–]meritt_zare -1 points0 points ago

This. nginx. php-fpm. apc.

No .ini tweaks really make the amount of difference in performance as the above.

Table of Contents: Everything developers need to know about SQL performance by MarkusWinandin programming

[–]meritt_zare 0 points1 point ago

Do you sell this in an ebook or printed book? Please link it up if you do :)

Table of Contents: Everything developers need to know about SQL performance by MarkusWinandin programming

[–]meritt_zare 0 points1 point ago

For the record, I personally didn't vote either way on these comments. Reddit's entire up/down vote system is fundamentally flawed for the sort of reasons you brought up, among numerous others.

So was your interpretation that theoverture just mean it in a tongue-in-cheek manner? Obviously it's a colloquial expression but I feel it's a negative one to imply "This article/info/etc is useless due to <reason>" and that just pissed me off (and apparently the downvoting folks interpreted it the same).

Table of Contents: Everything developers need to know about SQL performance by MarkusWinandin programming

[–]meritt_zare 3 points4 points ago

Yes. The statement "I stopped reading at" implies that he stopped reading because he found one mistake and implication being that the rest of the material is equally wrong and shitty information.

Table of Contents: Everything developers need to know about SQL performance by MarkusWinandin programming

[–]meritt_zare 6 points7 points ago

He's being downvoted because he's a dick. Not because he's correct. The author has spent an enormous amount of time giving back to the programming community by authoring high quality material that's freely available to anyone to read.

Table of Contents: Everything developers need to know about SQL performance by MarkusWinandin programming

[–]meritt_zare 4 points5 points ago

Reading books must be really difficult for you. Even extremely well respected works, such as The Art of Computer Programming, contain numerous errors. People make mistakes.

Try not to be a smug asshole about it in the future.

Would this referral script work? by ffxpwnsin PHP

[–]meritt_zare 0 points1 point ago

syntax is fine but this is a bad idea. Have an audit log instead.

timestamp | nick | balance_change | whatever else you track.

I got out of the Marine Corps today, which afforded me a rare opportunity. This is me, standing next to literally all of my worldly possessions. by Monster-_-in pics

[–]meritt_zare 7 points8 points ago

Damn the DEP and all that "counts towards your contract" crap. I was in the DEP 5 days. My IRR finally ends in 2 months though.

view more: next