metrika.xml详解
摘要:metrika.xml详解 vim /etc/metrika.xml <yandex> <clickhouse_remote_servers> <!-- 集群设置 --> <shunwang> <!-- clickhouse显示名称 可以自己修改 --> <shard> <!-- 一分片 --> <
阅读全文
users.xml配置详解
摘要:users.xml配置详解 <?xml version="1.0"?> <yandex> <profiles> <default> <max_memory_usage>10000000000</max_memory_usage> <!--单个查询最大内存使用量--> <max_memory_usag
阅读全文
clickhouse 配置文件详解
摘要:config.xml配置文件详解 <?xml version="1.0"?> <yandex> <logger> <level>trace</level> <log>/var/log/clickhouse-server/clickhouse-server.log</log> <!-- 日志存放目录
阅读全文
显示对象信息
摘要:client = SteamClient() # 获取对象 print(client.__dir__()) # 查看对象有什么属性 print(dir(client)) # 查看对象有什么属性 print(help(client)) # 查看对象信息 # ['cm_servers', 'connec
阅读全文
pycharm 报错内存不足: There is not enough memory to perform the requested operation。。。
摘要:1.放大内存限制 替换成 -Xms526m -Xmx2048m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=fals
阅读全文
递归替换字典的键和值
摘要:递归替换字典的键和值 def dict_del(obj): if isinstance(obj, dict): for k, v in obj.items(): if isinstance(k, bytes): obj[k.decode("utf-8", 'ignore')] = obj.pop(k
阅读全文
pycharm 显示
摘要:显示 添加这几行代码 idea.max.intellisense.filesize = 200000 # 200000kb idea.max.content.load.filesize = 200000 # 200000kb idea.cycle.buffer.size = 200000 # 200
阅读全文