Sajith vijesekara (@sajithv91) header
Sajith vijesekara (@sajithv91) profile picture

Technical Lead. Passionate about cloud computing & web security | Blogger at @Medium | Freelance Mobile Developer | CKAD | AWS Community Builder ๐Ÿ‡ฑ๐Ÿ‡ฐ

Gampaha,Srilanka
Joined October 2011
Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)Photo by Sajith vijesekara (@sajithv91)
Sajith vijesekara retweeted
1 Nobel Laureate 1 Central banker w/ Phd 2 Former military 1 Law professor 4 Human rights/student activists 2 Senior Legal professionals 2 Diplomats 1 Agriculture researcher 1 Psychology professor 1 Religious scholar ... 1 Friend of the President Bangladesh did what we couldn't.
15
21
4
118
12,034
Sajith vijesekara retweeted
This is beyond horrific. I'm disgusted to be a human being. Israel delivered a truck full of bodies to be buried in mass graves without any explanation.
675
14,024
595
26,176
909,506
Sajith vijesekara retweeted
This is what I want to see AI used for, not to create yet another social media auto replier for marketing.
Artificial intelligence detects breast cancer 5 years before it develops #MedEd #MedTwitter #SCIENCE #technology #oncology #Cancer #Diagnosis
627
179,174
955
1,128,248
20,812,154
Sajith vijesekara retweeted
Every single one of these videos is AI-generated, and if this doesn't concern you at least a little bit, nothing will The newest model: openai.com/sora (Remember Will Smith eating spaghetti? I have so many questions)
1,687
7,650
3,125
55,250
9,637,509
Sajith vijesekara retweeted
Applying the high scalability tips from Google and Netflix software architectures to your trivial project.
34
634
64
5,080
322,120
Sajith vijesekara retweeted
Need low latency & high performance? Accelerate workloads with #AWS. โ˜๏ธ๐ŸŽ๏ธ Amazon #S3 Express One Zone delivers the fastest data access in the cloud with the lowest-latency cloud #Storage. Speed up data processing & cross the finish with time to spare. ๐Ÿ‘‰ go.aws/46CCzSy
2
39
7
86
16,651
Sajith vijesekara retweeted
I love @SpringBoot 3.2!! - reactive cache/scheduled abstraction - virtual threads - CRaC - Spring for @apache_pulsar - RestClient / JdbcClient - reloadable SSL - @GraalVM - @java 21 - observability - spring.main.keep-alive=true - @Docker for @neo4j, activemq, etc - new dependencies - TransactionalExecutionListener Try it out: start.Spring.io For the full details see release notes for @springboot (1) and @springframework (2) 1. github.com/spring-projects/sโ€ฆ 2. github.com/spring-projects/sโ€ฆ โ€“ at San Francisco, CA
10
83
5
444
61,236
Sajith vijesekara retweeted
GLENN MAXWELL, WOW! THE GREATEST INNINGS IN ODI HISTORY?! #AUSvAFG #CWC23
835
3,037
718
23,972
956,131
๐—ง๐—ผ๐—ฝ ๐Ÿฎ๐Ÿฌ ๐—ฆ๐—ค๐—Ÿ ๐—พ๐˜‚๐—ฒ๐—ฟ๐˜† ๐—ผ๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐˜๐—ฒ๐—ฐ๐—ต๐—ป๐—ถ๐—พ๐˜‚๐—ฒ๐˜€ Here is the list of the top 20 SQL query optimization techniques I found noteworthy: 1. Create an index on huge tables (>1.000.000) rows 2. Use EXIST() instead of COUNT() to find an element in the table 3. SELECT fields instead of using SELECT * 4. Avoid Subqueries in WHERE Clause 5. Avoid SELECT DISTINCT where possible 6. Use WHERE Clause instead of HAVING 7. Create joins with INNER JOIN (not WHERE) 8. Use LIMIT to sample query results 9. Use UNION ALL instead of UNION wherever possible 10. Use UNION where instead of WHERE ... or ... query. 11. Run your query during off-peak hours 12. Avoid using OR in join queries 14. Choose GROUP BY over window functions 15. Use derived and temporary tables 16. Drop the index before loading bulk data 16. Use materialized views instead of views 17. Avoid != or <> (not equal) operator 18. Minimize the number of subqueries 19. Use INNER join as little as possible when you can get the same output using LEFT/RIGHT join. 20. For retrieving the same dataset, frequently try to use temporary sources. Do you know what is ๐—ค๐˜‚๐—ฒ๐—ฟ๐˜† ๐—ข๐—ฝ๐˜๐—ถ๐—บ๐—ถ๐˜‡๐—ฒ๐—ฟ? Its primary function is to determine ๐˜๐—ต๐—ฒ ๐—บ๐—ผ๐˜€๐˜ ๐—ฒ๐—ณ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฒ๐—ป๐˜ ๐˜„๐—ฎ๐˜† to execute a given SQL query by finding the best execution plan. The query optimizer works by taking the SQL query as input and analyzing it to determine how best to execute it. The first step is to parse the SQL query and create a syntax tree. The optimizer then analyzes the syntax tree to determine how to run the query. Next, the optimizer generates ๐—ฎ๐—น๐˜๐—ฒ๐—ฟ๐—ป๐—ฎ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฒ๐˜…๐—ฒ๐—ฐ๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ฝ๐—น๐—ฎ๐—ป๐˜€, which are different ways of executing the same query. Each execution plan specifies the order in which the tables should be accessed, the join methods, and any filtering or sorting operations. The optimizer then assigns a ๐—ฐ๐—ผ๐˜€๐˜ to each execution plan based on the number of disk reads and the CPU time required to execute the query. Finally, the optimizer ๐—ฐ๐—ต๐—ผ๐—ผ๐˜€๐—ฒ๐˜€ ๐˜๐—ต๐—ฒ ๐—ฒ๐˜…๐—ฒ๐—ฐ๐˜‚๐˜๐—ถ๐—ผ๐—ป ๐—ฝ๐—น๐—ฎ๐—ป with the lowest cost as the optimal execution plan for the query. This plan is then used to execute the query. Check in the image the ๐—ผ๐—ฟ๐—ฑ๐—ฒ๐—ฟ ๐—ถ๐—ป ๐˜„๐—ต๐—ถ๐—ฐ๐—ต ๐—ฆ๐—ค๐—Ÿ ๐—พ๐˜‚๐—ฒ๐—ฟ๐—ถ๐—ฒ๐˜€ ๐—ฟ๐˜‚๐—ป. #technology #softwareengineering #programming #techworldwithmilan #sql
68
1,633
36
8,055
984,587
Do you remember when you joined X? I do! #MyXAnniversary
1
59
Sajith vijesekara retweeted
So many new things in @java 21 vs @java 17. A few of my favorites, in addition to Loomโ€™s virtual ๐Ÿงตs: - SequencedCollections and new factory methods - Math.div* methods - auto-close HttpClient - BigInteger#parallelMultiply - enhanced switch pattern matching - record component extraction in pattern matching - exhaustive checks in sealed types in enhanced switch - Future#getState() - String#indexOf(String, int start, int stop)
9
77
4
413
48,424
Hibernate 6.3 comes with a way to define queries on the interface - similar to Spring Data JPA - but the implementation in generated in compile time. Works with traditional stateful session, stateless session and reactive variant of Hibernate. docs.jboss.org/hibernate/ormโ€ฆ
3
34
2
201
18,632
Sajith vijesekara retweeted
Here we go again ๐Ÿ˜ Anyone still on 6? ๐Ÿ˜…
17
51
4
306
23,635
Sajith vijesekara retweeted
Today marks one year since that historical day in Mirihana where People's Struggle, #Aragalaya began. Let's remind ourselves that Civic, Political, Social, Environmental and Cultural rights of Sri Lankans are not negotiable and #PeoplePower stands above all else. #SriLanka #lka
10
38
4
192
8,327
Sajith vijesekara retweeted
Postgres locks are interesting and can be confusing to understand. There are five lock categories in postgres and over 12 individual locks. I explore all types and categories of locks in this video. Here are they in order. ** Table-Level Locks - ACCESS EXCLUSIVE - ACCESS SHARE - ROW SHAREโ€จ- ROW EXCLUSIVE - SHARE UPDATE EXCLUSIVE - SHARE - SHARE ROW EXCLUSIVE - EXCLUSIVE ** Row-Level Locks - FOR UPDATE - FOR NO KEY UPDATE - FOR SHARE - FOR KEY SHARE ** Page-Level Locks ** Deadlocks ** Advisory Locks
10
189
1
1,182
179,289