1. مسعود ذاکری
  2. برنامه‌نویسی و طراحی وب
  3. جمعه, 04 مرداد 1392
سلام به همه دوستان یه سوال داشتم
میخواستم ببینم دیتابیس SQLite 3 محدودیتی برای اتصال داره؟؟؟
مثلا x بار در ساعت یا ...
و محدودیتی برای اتصال همزمان چند کلاینت داره یا نه؟؟؟
مسعود ذاکری بهترین پاسخ Pending Moderation
کارشناس
0
رای
پس‌گیری
یعنی واقعا هیچکس نیست جواب بده؟؟؟؟ دوستان خواهشا پاسخ بدین فوریه
khalil بهترین پاسخ Pending Moderation
-1
رای
پس‌گیری
من خودم کار نکردم ولی در موردش خوندم. یکی اینکه محدودیتی برای اتصال نداره ولی بصورت همزمان نمی تونه read / write کنه یعنی اگه یه پروسه می خواد تو دیتابیس بنویسه همزان نمی تونی از دیتابیس بخونی و برعکس اگه یک پروسه ای از دیتابیس بخواد بخونه همزمان نمی تونی تو دیتا بنویسی.

Situations Where Another RDBMS May Work Better

Client/Server Applications

If you have many client programs accessing a common database over a network, you should consider using a client/server database engine instead of SQLite. SQLite will work over a network filesystem, but because of the latency associated with most network filesystems, performance will not be great. Also, the file locking logic of many network filesystems implementation contains bugs (on both Unix and Windows). If file locking does not work like it should, it might be possible for two or more client programs to modify the same part of the same database at the same time, resulting in database corruption. Because this problem results from bugs in the underlying filesystem implementation, there is nothing SQLite can do to prevent it.

A good rule of thumb is that you should avoid using SQLite in situations where the same database will be accessed simultaneously from many computers over a network filesystem.

High-volume Websites

SQLite will normally work fine as the database backend to a website. But if you website is so busy that you are thinking of splitting the database component off onto a separate machine, then you should definitely consider using an enterprise-class client/server database engine instead of SQLite.

Very large datasets

An SQLite database is limited in size to 140 terabytes (247 bytes, 128 tibibytes). And even if it could handle larger databases, SQLite stores the entire database in a single disk file and many filesystems limit the maximum size of files to something less than this. So if you are contemplating databases of this magnitude, you would do well to consider using a client/server database engine that spreads its content across multiple disk files, and perhaps across multiple volumes.

High Concurrency

SQLite supports an unlimited number of simultaneous readers, but it will only allow one writer at any instant in time. For many situations, this is not a problem. Each application does its database work quickly and moves on, and no lock lasts for more than a few dozen milliseconds. But there are some applications that require more concurrency, and those applications may need to seek a different solution.
مسعود یوسف‌نژاد بهترین پاسخ Pending Moderation
0
رای
پس‌گیری
نه همچنین محدودیتی رو نداره دوست من ولی شما از طریق فایل Config می توانید این محدودیت ها رو ایجاد کنید. این کار رو براساس سخت افزار سرور تنظیم می کنند تا بصورت همزمان چندین درخواست به دیتابیس زده نشه و سرور نخوابه
لطفا پیش از ارسال پست در جواب، حتما قوانین سایت را مطالعه کنید:
http://www.javab24.com/rules

لطفا اگر پاسخ صحیح خود را دریافت کردید آن را به عنوان پاسخ صحیح انتخاب کنید.
مسعود ذاکری بهترین پاسخ Pending Moderation
کارشناس
0
رای
پس‌گیری
نه همچنین محدودیتی رو نداره دوست من ولی شما از طریق فایل Config می توانید این محدودیت ها رو ایجاد کنید. این کار رو براساس سخت افزار سرور تنظیم می کنند تا بصورت همزمان چندین درخواست به دیتابیس زده نشه و سرور نخوابه

آقا مسعود و آقا خلیل از جواباتون ممنون ولی آقا مسعود دقت کنید این دیتابیس تو یه نرم افزار به صورت آفلاین کار میکنه
و مشکلمو اگه بخوام دقیق تر بگم من توی نرم افزارم از دیتابیس SQLite استفاده میکنم ولی بعد از چند بار اتصال به دیتابیس دیگه وصل نمیشه
در هر دفعه اتصالم کانکشنو میبندم آخر سر
به نظرتون مشکل از کجاست؟؟؟؟؟
مسعود ذاکری بهترین پاسخ Pending Moderation
کارشناس
1
رای
پس‌گیری
دوستان ممنون مشکلو خودم حل کردم
  • صفحه :
  • 1


هنوز پاسخی به این پست ارسال نشده است.
البته از آنجایی که هنوز در سایت لاگین نکرده‌اید، اجازه‌ی پاسخ دادن به این پست را ندارید.

ورود / ثبت‌نام

 

کاربران فعال این ماه

مینا
Super User
مسعود یوسف‌نژاد
نازنین امامی
علی مردانی