Twitter | Search | |
Haki
A software developer and a technical lead. I take special interest in databases, web development, software design and performance tuning.
332
Tweets
110
Following
556
Followers
Tweets
Haki retweeted
Python Weekly Feb 18
Building an Interactive Voice Response (IVR) System with Python, Django and Twilio by via
Reply Retweet Like
Haki Feb 17
Replying to @pauloxnet
I'm not concerned with performance (yet), I'm mostly concerned with finding matching results on large chunks of text.
Reply Retweet Like
Haki Feb 16
Replying to @pauloxnet
How would you handle misspelled words in large chunks of text?
Reply Retweet Like
Haki Feb 16
Replying to @pauloxnet
Why do you calculate the rank using both search rank and trgm similarity? (Band manager section)
Reply Retweet Like
Haki Feb 14
Replying to @_labofcoding
You should be able to use this for that. Or, you can try using ExpressionWrapper. It accepts an output field argument.
Reply Retweet Like
Haki Feb 14
🐍 🐘 Even when you think the ORM won't handle it, it does! πŸ₯‡ Just used ArrayAgg and Func to produce an array of tuples from two model fields directly from the database (otherwise would have probably used collections.groupby)
Reply Retweet Like
Haki Feb 13
Sorry, didn't mean to mislead you. I got confused with JIT πŸ₯Ί
Reply Retweet Like
Haki Feb 11
About the joins, see the new genetic query optimizer in 12c
Reply Retweet Like
Haki Feb 11
Right.... Keep only the essential built-in middleware (auth / security / common) and drop the rest. Not using admin? Drop admin. Building an API? Drop CSRF and session...
Reply Retweet Like
Haki Feb 11
That's easy. Don't use middleware.
Reply Retweet Like
Haki Feb 10
Replying to @_BrunoAlla
Ha! Good eye.... Will fix πŸ˜‰
Reply Retweet Like
Haki Feb 10
Replying to @gagliardi_vale
Book sounds like a lot of work 😡
Reply Retweet Like
Haki Feb 10
Replying to @webology
Thanks! Fixed!
Reply Retweet Like
Haki Feb 10
πŸ“– 🐍 🐘 Just published a new article that puts QuerySets and SQL side by side. I think this is the best way to understand how to aggregations in Django work.
Reply Retweet Like
Haki Feb 7
Replying to @graingert @AdamChainz
That's pretty hacky but I'll take it πŸ™
Reply Retweet Like
Haki Feb 7
Replying to @graingert @AdamChainz
Right πŸ€¦β€β™‚οΈ You know, what I really want if for Python to support multi-line `with`...
Reply Retweet Like
Haki Feb 7
Replying to @AdamChainz
Nice. Did not know about ExitContext.
Reply Retweet Like
Haki Feb 6
Replying to @webology
We use finite state machines to model payment processes, shipping processes, etl processes, etc (you get it...). Along with a proper concurrency mechanism (optimistic /pessimistic) you get a reliable model. Never used django-fsm for it, but we draw some inspiration from it.
Reply Retweet Like
Haki Feb 5
I'm working with for more than 5 years and it keeps surprising me. Just created a model with some GeoDjango features, and when I opened the admin this is what I got: Amazing.
Reply Retweet Like
Haki Jan 31
Replying to @Rado_g
One of my favorites. I keep going back to it every time I have a tricky prefetch.
Reply Retweet Like