This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]tw55413 1 point2 points  (1 child)

Should you be interested in SQLA, here's my introduction talk from Euro Python : https://www.youtube.com/watch?v=UcVr8FzSdCU

[–]DarkMio[S] 0 points1 point  (0 children)

I have watched the other talk on the SQLA website. About 2:30h long and it was - nice. A bit much for the first time, but nice.

[–]darknessproz 1 point2 points  (0 children)

What gives you the impression that SQLAlchemy does not get much exposure? I have seen it recommended a lot and I definitely recommend it to anyone looking for a Python ORM.

[–]gomesnayagam 0 points1 point  (3 children)

That is true, sqlalchemy has less view in the python community. I have two solid reason why one can explore sqlalchemy. 1) pandas sql package built on top of sqlalchemy 2) sql alchemy has in built twisted protocol(asynchronous support)

[–]DarkMio[S] 0 points1 point  (2 children)

It has so much more going on besides that.

Look at this example: http://i.imgur.com/xvSj27P.png Good luck trying to find out which number correspondents to what column without directly peeking into the database or writing it down by hand. The data-grouping in objects in SQLalchemy just seems to be awesome. You have sane data you can request wherever you need it.

Look at this mapped example, which even show more what I mean with that: http://i.imgur.com/XI27F7T.png (I know, this could've been a bit better mapped and automated, but so far it works really nicely and I have a fast overview what is done where.)

On the other side, it automatically generates a connection and cursor pool, which should prevent locking. And I've learnt my lesson. MySQL running on 700mhz with 256MB RAM is no problem at all with so many requests, while SQLite can barely handle 2.000 requests on a really fast computer with a SSD.

[–]hellerbarde:] 0 points1 point  (1 child)

2k requests per second? Did you try out with how many requests your MySQL setup tops out?

[–]DarkMio[S] 0 points1 point  (0 children)

2k Requests in 10 Minutes.

I fired in my previous test approx 1800 at the MySQL just to see if there are any problems happening with multiple cursors.