Ruby pg gem view result12/28/2022 ![]() ![]() The driver was originally written by Matz (yes the man himself) in 1997. More surprisingly the Postgres driver for Ruby covers almost all those asynchronous API calls. ![]() It allows you to do almost all operations in a non blocking way. Surprisingly Postgres happens to have an excellent asynchronous client API. Go away dolphins, a real elephant is in the room now. Enter Postgres, the database with a realistic, unfriendly elephant mascot. So, what can we do about the elephant in the room? There is an Arabic proverb that basically says "Nothing can beat iron but iron" and this is exactly what we are going to do. Asymy is still very infant and it is based on the super slow pure Ruby MySQL driver, not to mention that it is fairly incomplete as well. Very promising indeed, but one big elephant in the room was the immaturity of the current solution. Even more, the devs need not worry about using a different programming model, with the help of Ruby Fibers we will continue to program in the same old ways while Fibers will be doing all the twisted work underneath. I mentioned the EventMachine/Asymy combo as a means of doing Asynchronous database operations hence freeing up the Ruby runtime to do other things while it is waiting on database I/O operations. In a previous post I talked a bit about event based programming for Ruby. Or 40% faster DB Access for your Ruby applications! ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |