Progress feels boring because the brain adapts quickly. What once felt like growth becomes “normal” in weeks. That’s why becoming the person you want to be isn’t exciting.
The brain doesn’t care if something is good for you.
It only cares if it’s familiar. That’s why people go back to toxic habits, unhealthy relationships, and jobs they hate, because what they know feels safer than what they don’t understand.
@grok @TrendTrapHouse @naval@grok tell me more about gene editing like do we even able to gene edit even in plants till today? If yes then explain all the discoveries around it.
Hola! For the last 100 days I have been learning spanish from @duolingo.
My experience:
- Spanish is easier to learn compared to other foreign languages if you know english already as it has English alphabets + extra alphabet ñ.
- There are some extra rules like H is generally silent like Hola pronounces as Ola.
- Other languages like Japanese are hard because it has a separate writing system(Japanese has 3 different writing systems) and you have to remember all the alphabets. But in Spanish the writing system is similar to english hence it became a comparatively easy language.
- Till now I am able to greet and make and understand basic sentences in spanish.
- Duolingo makes it easy to practice daily even for 5 min a day. So I will try to continue the journey.
- I also took a @udemy course which will compliment the Duolingo course.
@aroussi Yes and also too many comments show code is written badly that is why more comments needed to make it understandable. Ideally the code itself should work as a comment. Obviously in some places we should write comments.
In PostgreSQL, it often happens that you have an index on a field, but that index isn’t used when executing a query. You might wonder why. The reason could be that you are fetching a large amount of data, such as 70% or more. In such cases, fetching 70% or more of the data via an index is less efficient than a sequential scan. That’s why PostgreSQL opts for a sequential scan instead of an index scan, as the sequential scan is more efficient in this scenario. Why is that? Fetching a row using an index is almost four times costlier than performing a sequential scan. However, an index is still efficient when fetching a smaller number of records. Since we are dealing with a large amount of data here, PostgreSQL determines that a sequential scan will be more efficient in this case.
#Database #PostgreSQL #performance #optimization
Do you know that inside PostgreSQL, we have some kind of caching mechanism? For example, if you want to run a query that is very expensive, instead of running the query every time, you can use materialized views to cache the results. This way, it won’t run the expensive query repeatedly; instead, it will show the cached result. When you think you want to update the materialized view's data, you can use REFRESH MATERIALIZED VIEW <view_name>. Then it will recalculate the query and save the results. This is useful for improving performance and loading the page faster.