Jonas Staudenmeir Profile
Jonas Staudenmeir

@staudenmeir

Followers
1,530
Following
95
Media
0
Statuses
43

Backend Developer: PHP, MySQL, Laravel | @laravelphp Core Contributor | @staudenmeir @phpc .social

Munich, Germany
Joined September 2015
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@staudenmeir
Jonas Staudenmeir
4 years
I've released a big update for the adjacency list package with new relations, scopes, custom paths, and performance improvements:
3
7
40
@staudenmeir
Jonas Staudenmeir
5 years
All my packages now support Laravel 6.
2
2
22
@staudenmeir
Jonas Staudenmeir
4 years
All my packages now support Laravel 7.
1
1
21
@staudenmeir
Jonas Staudenmeir
3 years
@tobias_petry Thanks! I thought you had maybe seen some sample benchmarks.
0
0
3
@staudenmeir
Jonas Staudenmeir
3 years
@tobias_petry Do you know how the query performance typically compares to adjacency lists with parent_id and recursive CTEs?
1
0
3
@staudenmeir
Jonas Staudenmeir
5 years
@LindkjR @marcelpociot @laravelphp Laravel does wrap migrations in transactions, but only PostgreSQL and SQL Server support that. MySQL can't roll back data definition language (DDL) statements.
0
0
2
@staudenmeir
Jonas Staudenmeir
1 year
@hazj95 Do you mean to get a specific level/depth of ancestors/descendants?
1
0
2
@staudenmeir
Jonas Staudenmeir
3 months
@tobias_petry @jerodev @LaraconEU I wrote the implementation back in 2018 and AFAIR, that was the only method that worked for all DBMS. Of course, the query could also be made DBMS-specific.
1
0
2
@staudenmeir
Jonas Staudenmeir
1 year
@hazj95 The depth is positive for descendants and negative for ancestors.
1
0
2
@staudenmeir
Jonas Staudenmeir
1 year
@hazj95 You can use whereDepth() for that:
1
0
2
@staudenmeir
Jonas Staudenmeir
2 years
@hazj95 You can only do that manually at the moment: Loop over $ancestors and reverse every custom path with explode() -> reverse() -> implode(). I have thought about adding an option for that to getCustomPaths(), I'll look into it.
1
0
1
@staudenmeir
Jonas Staudenmeir
5 years
@adamwathan The package now supports Laravel 6.
1
0
1
@staudenmeir
Jonas Staudenmeir
5 years
@driesvints Are you watching it in German? ;-)
1
0
1