{"id":8891,"date":"2026-10-26T13:58:49","date_gmt":"2026-10-26T11:58:49","guid":{"rendered":"https:\/\/e-verslas.lt\/?p=8891"},"modified":"2026-10-26T13:58:50","modified_gmt":"2026-10-26T11:58:50","slug":"laravel-13-38-0-uzklausu-uzduociu-patobulinimai","status":"publish","type":"post","link":"https:\/\/e-verslas.lt\/en\/laravel-13-38-0-query-task-improvements\/","title":{"rendered":"Laravel 13.38.0: Data Query and Background Task Improvements"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Laravel 13.38.0 was released on October 20, 2026. The official project changelog includes improvements to data queries, queues, messages, and other framework components. These include a new PreventStaleDatabaseReads middleware, improved lock release for unique scheduled jobs, and changes to memory usage when processing data in batches. This is a relevant release for PHP framework developers, but its impact on a specific application should be assessed based on the features used.<\/p>\n\n\n<p class=\"wp-block-paragraph\">There are also fixes for data model relationships, date comparison checking, message passing across channels, and route caching. These points do not imply that every system built before has encountered all of the issues listed. The following is a practical explanation of how to pick out important changes and test your application. This is not a promise that simply installing a new package will automatically make your system faster or more reliable.<\/p>\n\n\n<h2 class=\"wp-block-heading\">How to select changes that are important for the project?<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Start with a feature map, not a mechanical rewrite of all release points. If the system runs background jobs, review changes to queues and scheduled actions. If it sends messages through multiple channels, check the corresponding behavior. Database changes are primarily relevant to those places where specific queries or model relationships apply. This selection method allows you to focus more on the code that is actually being used.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Assign one test scenario to each critical point. For example, a scheduled task should run once, and if it fails to queue, the system should not keep the job locked indefinitely. It is important to describe not only the successful path, but also the error. If the test is limited to making the home page work, it tells you little about processes that are only started at night or during periods of higher load.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Why do background jobs need a separate check?<\/h2>\n\n\n<p class=\"wp-block-paragraph\">In a business system, a user may see a successfully received request before all processing is complete. Sending an email, creating a report, or updating an external system may occur later. Therefore, after updating the framework, check whether the jobs reach the correct queue, whether workers pick them up, and whether the result is saved. Use test addresses and data during testing so that the verification does not trigger actions intended for real customers.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Consider the consequences of re-running. If the same task were to be executed twice, would the system create a double bill or send a re-notification? This question is important regardless of the specific framework release. A task identifier, clear state storage, and verifiable output help distinguish work in progress from work already done. It is worth documenting design decisions so that later changes do not inadvertently override them.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Evaluate memory usage based on a realistic amount of data. A small local sample may not show the problem that becomes apparent when processing a large catalog. Choose a safe test set and record execution time, peak memory usage, and error rate. Compare under similar conditions before and after the upgrade. Otherwise, it is difficult to tell whether the change is due to an application change, server load, or different amounts of data.<\/p>\n\n\n<h2 class=\"wp-block-heading\">How to safely push an update to a running system?<\/h2>\n\n\n<p class=\"wp-block-paragraph\">First, test the project in a separate environment with the dependency versions captured. Save the changelog and check for any unrelated packages that were updated at the same time. If you are using a dependency lock file, review its differences. The update description should clearly show what was changed and what checks were performed. This makes it easier for the next developer to review and reduces the chance of surprises during launch.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Plan time for post-deployment monitoring. It is important to review error logs, background job statuses, and key user transactions. If the system has multiple servers, make sure that all are running the intended version and have consistent settings. Don\u2019t rely on just one server for verification. Also, agree on who will make the decision to stop the deployment or roll back if a key business process breaks.<\/p>\n\n\n<p class=\"wp-block-paragraph\">The recovery plan must take into account data created after the installation. Simply rolling back previous files may not be enough if the data structure has changed or new operations have been processed in the meantime. Therefore, describe the possible rollback actions and their limits before the upgrade. Do not assume that every change can be safely undone in the same way. A test recovery helps you see in advance what information is not yet included in the procedure.<\/p>\n\n\n<p class=\"wp-block-paragraph\">It is worth turning the completed checks into a permanent project checklist. For each feature, indicate the expected result, the date of the check, and the person responsible. Next time, the team will be able to start from a clear foundation, rather than guessing again what needs to be checked. This work is especially useful for portals and business systems, the most important functions of which take place in the administration area or in the background and are not immediately visible on the public page.<\/p>\n\n\n<p class=\"wp-block-paragraph\">Source: Laravel project GitHub.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u201eLaravel 13.38.0\u201c i\u0161leistas 2026 m. spalio 20 dien\u0105. Oficialus projekto pakeitim\u0173 \u017eurnalas apima duomen\u0173 u\u017eklaus\u0173, eili\u0173, prane\u0161im\u0173 ir kit\u0173 karkaso komponent\u0173 patobulinimus. Tarp j\u0173 \u2013 naujas \u201ePreventStaleDatabaseReads\u201c tarpinis sluoksnis, patikslintas unikali\u0173 suplanuot\u0173 darb\u0173 u\u017erakt\u0173 atlaisvinimas ir atminties naudojimo pakeitimai apdorojant duomenis dalimis. Tai aktualus leidimas PHP sistem\u0173 k\u016br\u0117jams, ta\u010diau jo poveik\u012f konkre\u010diai programai reikia vertinti [&hellip;]<\/p>","protected":false},"author":1,"featured_media":8883,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[71],"tags":[],"class_list":["post-8891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"taxonomy_info":{"category":[{"value":71,"label":"PHP"}]},"featured_image_src_large":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-1024x683.png",1024,683,true],"author_info":{"display_name":"Administratorius","author_link":"https:\/\/e-verslas.lt\/en\/author\/administratorius\/"},"comment_info":0,"category_info":[{"term_id":71,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":71,"taxonomy":"category","description":"PHP skriptai i\u0161 CodeCanyon ir kitur","parent":0,"count":5,"filter":"raw","cat_ID":71,"category_count":5,"category_description":"PHP skriptai i\u0161 CodeCanyon ir kitur","cat_name":"PHP","category_nicename":"php","category_parent":0}],"tag_info":false,"uagb_featured_image_src":{"full":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration.png",1536,1024,false],"thumbnail":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-150x150.png",150,150,true],"medium":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-300x200.png",300,200,true],"medium_large":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-768x512.png",768,512,true],"large":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-1024x683.png",1024,683,true],"1536x1536":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration.png",1536,1024,false],"2048x2048":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration.png",1536,1024,false],"trp-custom-language-flag":["https:\/\/e-verslas.lt\/wp-content\/uploads\/php-development-illustration-18x12.png",18,12,true]},"uagb_author_info":{"display_name":"Administratorius","author_link":"https:\/\/e-verslas.lt\/en\/author\/administratorius\/"},"uagb_comment_info":0,"uagb_excerpt":"\u201eLaravel 13.38.0\u201c i\u0161leistas 2026 m. spalio 20 dien\u0105. Oficialus projekto pakeitim\u0173 \u017eurnalas apima duomen\u0173 u\u017eklaus\u0173, eili\u0173, prane\u0161im\u0173 ir kit\u0173 karkaso komponent\u0173 patobulinimus. Tarp j\u0173 \u2013 naujas \u201ePreventStaleDatabaseReads\u201c tarpinis sluoksnis, patikslintas unikali\u0173 suplanuot\u0173 darb\u0173 u\u017erakt\u0173 atlaisvinimas ir atminties naudojimo pakeitimai apdorojant duomenis dalimis. Tai aktualus leidimas PHP sistem\u0173 k\u016br\u0117jams, ta\u010diau jo poveik\u012f konkre\u010diai programai reikia vertinti&hellip;","_links":{"self":[{"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/posts\/8891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/comments?post=8891"}],"version-history":[{"count":1,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/posts\/8891\/revisions"}],"predecessor-version":[{"id":8892,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/posts\/8891\/revisions\/8892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/media\/8883"}],"wp:attachment":[{"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/media?parent=8891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/categories?post=8891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/e-verslas.lt\/en\/wp-json\/wp\/v2\/tags?post=8891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}