大数据

  • 秒杀系统如何保证数据库不崩溃以及防止商品超卖

    1、应用场景 电商商城,商家上架了一个秒杀活动,早上10点开始,商品A参与秒杀,一共有20个库存,预计10W的人去抢。   2、面临问题 高并发、库存不可超卖   3、问题解决 1)高并发,我们不能把所有的请求都去数据库…

    大数据 2022年7月21日
  • docker安装mysql5.7(CentOS Linux release 7.9.2009 )

    docker pull mysql:5.7 mkdir -p /docker/mysql/log # 日志文件 mkdir -p /docker/mysql/data # 数据文件 mkdir -p /docker/mysql/conf # 配置文件 vim /docker/mysql/conf/my.cnf # 新建配置文件 [client] default…

    大数据 2022年7月21日
  • sql xml2

    <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.huike.clues.map…

    大数据 2022年7月21日
  • sql xml

    <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.huike.business.…

    大数据 2022年7月21日
  • sql

    <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.huike.contract.…

    大数据 2022年7月21日
  • spring链接redis报错 Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionExcept

    记录一次生产环境的redis切换事故生产环境redis切换,由原来的直连ip服务改为阿里的redis集群,出现了链接失败的错误org.springframework.data.redis.RedisSystemException: Error in execution; nested exception …

    大数据 2022年7月21日
  • Oracle.ManagedDataAccess.Client 踩坑记录

    错误一: Network Transport: TCP transport address connect failure 详细错误信息:Network Transport: TCP transport address connect failureOracle.ManagedDataAccess.Client.OracleException (0x80004005): N…

    大数据 2022年7月21日
  • sql server创建用户只有select权限

    1,右键点击Security-Logins创建一个用户 2,右键点击pegasusview2的properties,然后在User Mapping中把Iurs勾选上   3,右键点击Iurs数据库然后在Permissions中选中pegasusview2这个用户然后把select勾选上  

    大数据 2022年7月20日
  • MySQL55题及答案

                               

    大数据 2022年7月20日
  • MySQL中的Binlog和Redo log

    为什么要有redo log 一般当MySQL更新数据时,有两种情况,追加数据或定位到已经存在的一条数据进行修改。 然而磁盘随机读写速度很慢,无法满足高IO操作的场景。 为了提高写入效率,一般我们可以先将数据写入内存,…

    大数据 2022年7月20日