Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2007
    Messaggi
    67

    Multiversion Concurrency Control per Postgres

    Salve, qualcuno potrebbe indicarmi come effetturare la procedura di Multiversion Concurrency Control in PostgreSQL, per favore ?
    Dovrei gestire le connessioni multiple e non so come fare.
    Grazie

  2. #2
    Utente di HTML.it
    Registrato dal
    Nov 2007
    Messaggi
    67
    Nessuno può darmi qualche suggerimento ?

  3. #3
    ehm, in postgresql è qualcosa di intrinseco o almeno cosi mi pare di capire

    http://onlamp.com/onlamp/2001/05/25/...esql_mvcc.html

    While most other database systems use locks to maintain concurrency control and data consistency, PostgreSQL uses a multi-version model. Think of a version as a data snapshot at a distinct point in time. When users query a table, the current version of the data appears. If they run the same query again on the table, a new version appears if any data has changed. Data changes occur in a database through UPDATE, INSERT, or DELETE statements.

    A simple example of selecting data from one table shows the difference between traditional row-level locking and PostgreSQL's MVCC.

    SELECT headlines FROM news_items
    .
    .
    .
    In PostgreSQL, however, users can always view the news_items table. There is no need to wait for a lock to be released, even if multiple users are inserting and updating data in the table. When a user issues the SELECT query, PostgreSQL displays a snapshot, or version, of all the data that was committed before the query began. Any data updates or inserts that are part of open transactions or were committed after the query began will not be displayed. Doesn't that make complete sense?
    Qui la documentazione di postgresql:
    http://www.postgresql.org/docs/8.4/i...tive/mvcc.html

  4. #4
    Utente di HTML.it
    Registrato dal
    Nov 2007
    Messaggi
    67
    Quindi farebbe tutto da solo ?
    Non è che ci ho capito molto

  5. #5
    Utente di HTML.it
    Registrato dal
    Nov 2007
    Messaggi
    67
    Nessuno ha mai avuto a che fare con il MVCC ?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.