V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  SilenceLL  ›  全部回复第 11 页 / 共 25 页
回复总数  496
1 ... 7  8  9  10  11  12  13  14  15  16 ... 25  
2023-10-31 16:26:09 +08:00
回复了 fancy2020 创建的主题 生活 越来越感觉在手机上买东西很累
是的,做的太特么复杂了,看着真烦。
2023-10-31 14:34:55 +08:00
回复了 cs5117155 创建的主题 生活 如何提醒老人家出门记得关燃气灶
有防干烧的,但是感觉没有那么靠谱,我之前看过,有很多容易误关闭。反正就是没有 100%靠谱的
2023-10-30 09:41:38 +08:00
回复了 pujx233 创建的主题 iPhone pdd 上 15 promax 8898 了,接下来这一个月会更低吗?
@ruoyutx 为啥不敢,买过挺多手机,耳机啥的。
2023-10-29 21:44:51 +08:00
回复了 100APPLTD 创建的主题 程序员 关于最近火热的 mistral 7b 模型我做了一个全盘的指南网站
The Complete Giude of 是不是写错介绍了 guide
2023-10-27 17:35:06 +08:00
回复了 smallpampan 创建的主题 生活 如果可以不工作,你想做什么?
钓鱼
2023-10-27 08:22:07 +08:00
回复了 ODESZA 创建的主题 职场话题 经历了有史以来工作中最大的奇耻大辱
@ODESZA 深有同感,同行业。不过我们更惨,需求自己都不懂需求边界,各种业务揉杂在一起,没有任何扩展性,只要扩展业务必受以前的不规范业务限制。关键是他们还觉得自己做的太好了,到处吹。
2023-10-23 16:12:54 +08:00
回复了 mainjzb 创建的主题 生活 哈哈哈哈哈哈 锅贴店倒闭了
那天忘了刷 V2 了,今天补上前文,
2023-10-10 08:24:58 +08:00
回复了 mikeying 创建的主题 深圳 永远都在搬家找房子,心态被搞崩了
我们住城中村好久了,房东直租,人还挺好的。我自己其实也挺想换个地方住的,但是有对象后东西太多了确实很麻烦,单身的时候没啥东西还好。
2023-10-08 17:18:55 +08:00
回复了 wxd21020 创建的主题 买买买 马上双十一了,计划好买啥了吗?
@q474818917 不要买,感觉油汀靠谱点
2023-10-08 17:15:57 +08:00
回复了 justthewayyouare 创建的主题 Windows Phone 微软这么强为什么不整一个手机操作系统?
当年 Windows phone 的粉丝比果粉厉害多了,绰号软狗。
2023-10-08 08:19:40 +08:00
回复了 yuhongtai114514 创建的主题 Java 响应式编程确实有点看不懂
原来大家都看着难受,说明是真的难受
看下有没有传给子线程或者线程池使用,也要清除一下。
2023-09-27 10:17:31 +08:00
回复了 SilenceLL 创建的主题 程序员 请教一个 SQLite+Android+Gomobile 的问题
@zhanlanhuizhang 现在就是只打开一次,出现写入错误概率高。如果每次执行前打开一个新的链接,写入错误概率就低了,甚至不出现了。
2023-09-26 14:05:46 +08:00
回复了 SilenceLL 创建的主题 程序员 请教一个 SQLite+Android+Gomobile 的问题
另外还有一个现象,就是如果我每次执行 sql 之前都宠幸 sql.open 一个新的 db ,这种问题出现的概率会大幅下降。有点像是一个连接性能有限,开个新的就能申请一些新的资源占用。
2023-09-26 14:02:53 +08:00
回复了 SilenceLL 创建的主题 程序员 请教一个 SQLite+Android+Gomobile 的问题
@zhanlanhuizhang @ysc3839 有一定的历史原因,因为我们现在有一个库就是用 beego+go-sqlite3 打包成可执行文件当做 android 本地服务器使用的,新版 android 30 限制使用这种方式执行二进制,只能改成 aar 执行。结果性能下降非常严重,相同的数据和 sql 直接调用不管是通过二进制文件( targetVerison<30 )还是通过 android 直接调用都能执行成功,但是影响数据量大的情况下 gomobile+go-sqlite3 构建的 aar 直接报错。

如下例子(打包成 aar ),同一个事务中,修改数据少的 sql 可以执行成功,修改数据多的不能执行成功。

```go
func Test3(dir string, times int) {
fmt.Println("Test3 exec start:", times)
//os.Remove(dir)
os.Chmod(dir, 0777)
//db, err := sql.Open("sqlite3", "file:"+dir+"?mode=rwc")
db, err := sql.Open("sqlite3", dir)
if err != nil {
fmt.Println(err)
}
defer db.Close()

var readOnly string
row := db.QueryRow("PRAGMA query_only")
err = row.Scan(&readOnly)
if err != nil {
fmt.Println(fmt.Sprintf("pragma query_only error:%s", err.Error()))
}
fmt.Println(fmt.Sprintf("pragma query_only:%s", readOnly))

tx, err := db.Begin()
if err != nil {
fmt.Println(err)
}
for i := 0; i < times; i++ {
_, err := tx.Exec(`update table set is_del = 1 where id <101`)
if err != nil {
fmt.Println(fmt.Sprintf("exec1 error:%s", err.Error()))
}
_, err = tx.Exec(`update table set is_del = 1 where is_del = 0 and id not in
(select id from (select max(create_at), id from table where is_del =0 group by a_id,b_idhaving count(*)>0))`)
if err != nil {
fmt.Println(fmt.Sprintf("exec2 error:%s", err.Error()))
}
}
err = tx.Commit()
if err != nil {
fmt.Println(err)
}
fileInfo, err := os.Stat(dir)
if err != nil {
fmt.Println(err)
}
fileMode := fileInfo.Mode()
fmt.Println(fileMode)
//perm := fileMode.Perm()
//fmt.Println("permission:", uint32(perm))
fmt.Println("Test3 exec end:", times)
}
```

```shell
2023-09-22 10:09:28.473 27362-27496 GoLog I Test3 exec start: 1
2023-09-22 10:09:28.476 27362-27493 GoLog I pragma query_only:0
2023-09-22 10:09:28.521 27362-27496 GoLog I exec2 error:disk I/O error: read-only file system
2023-09-22 10:09:28.521 27362-27496 GoLog I cannot commit - no transaction is active
2023-09-22 10:09:28.521 27362-27493 GoLog I -rwxrwxrwx
2023-09-22 10:09:28.521 27362-27493 GoLog I Test3 exec end: 1
2023-09-22 10:09:28.530 27362-27490 Android E Shell Command Output:-rwxrwxrwx 1 u0_a1451 u0_a1451 17772544 2023-09-22 10:03 /data/user/0/packagename/16fc0efec1104515b0244ddae36a4123.db

```
我中行限制 5k ,没通知,转账的时候人都麻了
1 ... 7  8  9  10  11  12  13  14  15  16 ... 25  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2670 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms · UTC 15:06 · PVG 23:06 · LAX 07:06 · JFK 10:06
Developed with CodeLauncher
♥ Do have faith in what you're doing.