Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wydajność baz SQLite, Informacja dla użytkowników rozszerzenia
Grzyw
post
Post #1





Grupa: Zarejestrowani
Postów: 561
Pomógł: 75
Dołączył: 19.08.2004
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Nie wiem, czy ten fakt się komuś przyda (widząc po liczbie postów to rozszerzenie jest wciąż słabo popularne)...

Stworzyłem ostatnio aplikację internetową w ramach pracy magisterskiej, używając bazę danych SQLite. Przy wyciąganiu danych z bazy wszystko było OK, natomiast zapis do bazy okazał się koszmarnie powolny. Dlatego ostrzegam przed implementacją systemów, w których następować będzie masowy update rekordów.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Riklaunim
post
Post #2





Grupa: Zarejestrowani
Postów: 640
Pomógł: 44
Dołączył: 8.02.2004

Ostrzeżenie: (0%)
-----


Co do szczegółów to efekt Reddita artykułu na rkblog.rk.edu.pl (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Wykres przedstawia ilość "wizyt". SQLek na widoku artykułu jest około 7. Z localhosta lista jest taka (duplikaty ponownie się nie wykonują):

Kod
0.006: SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."session_key" = XXXXX AND "django_session"."expire_date" > 2008-10-12 16:52:54.084188 )

0.000: SELECT "rk_content3"."id", "rk_content3"."title", "rk_content3"."slug", "rk_content3"."description", "rk_content3"."text", "rk_content3"."content_type", "rk_content3"."place_id", "rk_content3"."date", "rk_content3"."is_update", "rk_content3"."changes", "rk_content3"."book_order", "rk_content3"."author_id", "rk_content3"."comments_count", "rk_content3"."coment_topic_id", "rk_content3"."coment_forum_id", "rk_content3"."current_book", "rk_content3"."current_book_title", "rk_content3"."crumb" FROM "rk_content3" WHERE "rk_content3"."slug" = korzystanie-z-datastore-w-google-app-engine

0.000: SELECT "rk_content3"."id", "rk_content3"."title", "rk_content3"."slug", "rk_content3"."description", "rk_content3"."text", "rk_content3"."content_type", "rk_content3"."place_id", "rk_content3"."date", "rk_content3"."is_update", "rk_content3"."changes", "rk_content3"."book_order", "rk_content3"."author_id", "rk_content3"."comments_count", "rk_content3"."coment_topic_id", "rk_content3"."coment_forum_id", "rk_content3"."current_book", "rk_content3"."current_book_title", "rk_content3"."crumb" FROM "rk_content3" WHERE "rk_content3"."id" = 186

0.000: SELECT "rk_forum3"."id", "rk_forum3"."category_id", "rk_forum3"."name", "rk_forum3"."description", "rk_forum3"."topics", "rk_forum3"."posts", "rk_forum3"."lastposter", "rk_forum3"."lasttopic", "rk_forum3"."modification_date", "rk_forum3"."order", "rk_forum3"."use_prefixes", "rk_forum3"."allow_anonymous", "rk_forum3"."use_moderators" FROM "rk_forum3" WHERE "rk_forum3"."id" = 9

0.000: SELECT "rk_forum3"."id", "rk_forum3"."category_id", "rk_forum3"."name", "rk_forum3"."description", "rk_forum3"."topics", "rk_forum3"."posts", "rk_forum3"."lastposter", "rk_forum3"."lasttopic", "rk_forum3"."modification_date", "rk_forum3"."order", "rk_forum3"."use_prefixes", "rk_forum3"."allow_anonymous", "rk_forum3"."use_moderators" FROM "rk_forum3" WHERE "rk_forum3"."id" = 9

0.007: SELECT "rk_content3"."slug", "rk_content3"."title" FROM "rk_content3" WHERE ("rk_content3"."book_order" > 0 AND "rk_content3"."content_type" = book ) ORDER BY "rk_content3"."book_order" ASC

0.000: SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 1
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.10.2025 - 01:06