문제

i 읽기가 아닌 SQLLITE를 읽는 것이 더 좋습니다. 특히 동시성 삽입의 경우 전체 데이터베이스 파일을 잠그기 때문에 그러나 나는 당신의 마지막 지점을 알고 싶습니다 :).

그래서 나는 내가 문제가 있는지 궁금해합니다. 그런 일로 :

foreach($rows as $row){
    if(null === $model->check($row->id,$row->name)){
        //prepare date
        $model->insert($data);
    }
}
.

코드는 기어맨 근로자 안에 있습니다. 그래서 하나 이상의 인스턴스.

미리 감사드립니다.

도움이 되었습니까?

해결책

You may also want to look at Berkeley DB. The SQL API for Berkeley DB is SQLite compatible, but it has much higher concurrency because it doesn't require exclusive database write locks. Because the API is SQLite compatible, it's an easy test to rebuild your application against the Berkeley DB library.

다른 팁

No problem at all to me. Here's a great read regarding sqlite locks: http://www.sqlite.org/lockingv3.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top