原来是美男

The Supreme Court orders makers of gun parts to comply with rules on ghost guns_我的网站

世界第一等

一 |     WASHINGTON -- The Supreme Court on Monday ordered two internet sellers of gun parts to comply with a Biden administration regulation aimed at ghost guns, firearms that are difficult to trace because they lack serial numbers.The court had intervened once before, by a 5-4 vote in August, to keep the regulation in effect after it had been invalidated by a lower court. No justice dissented publicly from Monday's order, which followed a ruling from a federal judge in Texas that exempted the two companies, Blackhawk Manufacturing Group and Defense Distributed, from having to abide by the regulation of ghost gun kits.Other makers of gun parts also had been seeking similar court orders, the administration told the Supreme Court in a filing.“Absent relief from this Court, therefore, untraceable ghost guns will remain widely available to anyone with a computer and a credit card — no background check required,” Solicitor General Elizabeth Prelogar, the administration's top Supreme Court lawyer, wrote. The regulation changed the definition of a firearm under federal law to include unfinished parts, like the frame of a handgun or the receiver of a long gun, so they can be tracked more easily. Those parts must be licensed and include serial numbers. Manufacturers must also run background checks before a sale — as they do with other commercially made firearms. The requirement applies regardless of how the firearm was made, meaning it includes ghost guns made from individual parts or kits or by 3D printers.The regulation will be in effect while the administration appeals the judge's ruling to the 5th U.S. Circuit Court of Appeals in New Orleans — and potentially the Supreme Court.。    

     一键部署OpenClaw        网站慢,很多时候不是带宽不够,而是数据库查询慢。优化MySQL其实就两件事:加索引和用缓存。    先说索引。

二 | 没索引的查询就是全表扫描,10万条数据能查出你服务器CPU飙到100%。加了索引,查询速度能提升百倍。    -- MySQL索引优化示例    -- 查看慢查询(找出需要优化的SQL)    SELECT * FROM mysql.slow_log    WHERE start_time > NOW() - INTERVAL 1 DAY    ORDER BY query_time DESC LIMIT 10;    -- 用EXPLAIN分析查询计划    EXPLAIN SELECT * FROM articles    WHERE category_id = 5 AND status = 1    ORDER BY created_at DESC LIMIT 20;    -- 如果type是ALL(全表扫描),就需要加索引    CREATE INDEX idx_category_status_time    ON articles(category_id, status, created_at);    -- 复合索引遵循最左前缀原则    -- 即:查询条件从左到右依次命中索引    再说缓存。

三 | 领用最多的场景是Redis缓存。

四 | 把查询结果存到Redis里,下次查询直接从Redis取,不用查数据库。    # Redis缓存示例(PHP + Redis)    // 先查缓存    $redis = new Redis();    $redis->connect('127.0.0.1', 6379);    $cacheKey = 'article_list_page_' . $page;    $cached = $redis->get($cacheKey);    if ($cached) {    // 缓存命中,直接返回    echo $cached;    } else {    // 缓存未命中,查数据库    $articles = $pdo->query("SELECT * FROM articles ORDER BY id DESC LIMIT 20")->fetchAll();    $html = renderArticles($articles);    // 存入缓存,过期10分钟    $redis->setex($cacheKey, 600, $html);    echo $html;    }    MySQL本身也有查询缓存,在my.cnf里开启就行。但注意,数据更新后缓存不会立即失效,对实时性要求高的场景不适合。    # MySQL查询缓存配置(my.cnf)    query_cache_type = 1    query_cache_size = 64M    query_cache_limit = 2M    # InnoDB缓冲池大小(一般设为内存的70%)    innodb_buffer_pool_size = 2G    innodb_log_file_size = 256M    最后,定期清理数据库碎片和日志。数据量大了,碎片会导致查询变慢。每月跑一次OPTIMIZE TABLE就能解决。

五 |

        
    

申请创业报道,分享创业好点子。

六 | 点击此处,共同探讨创业新机遇!。

Current article:http://mvbz.zangjiwuqihuncongcherua.cyou/gm0mmk2/20260826/2458343.html

Published on:14:36:58