Skip to content

Commit a67ed2a

Browse files
committed
Add DTM presentsation files
1 parent 7ba7388 commit a67ed2a

File tree

4 files changed

+302
-4
lines changed

4 files changed

+302
-4
lines changed

contrib/pg_dtm/docs/dtm.pdf

1.15 MB
Binary file not shown.

contrib/pg_dtm/docs/pgpro-background.jpg

Lines changed: 295 additions & 0 deletions
Loading
7.05 KB
Binary file not shown.

contrib/pg_tsdtm/tests/transfers.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import (
55
"sync"
66
"strconv"
77
"math/rand"
8+
"time"
89
"github.com/jackc/pgx"
910
)
1011

1112
const (
12-
TRANSFER_CONNECTIONS = 8
13+
TRANSFER_CONNECTIONS = 10
1314
INIT_AMOUNT = 10000
14-
N_ITERATIONS = 10000//0
15-
N_ACCOUNTS = 2//100000
15+
N_ITERATIONS = 10000
16+
N_ACCOUNTS = 100000
1617
)
1718

1819

@@ -201,7 +202,7 @@ func main() {
201202
var inspectWg sync.WaitGroup
202203

203204
prepare_db()
204-
205+
start := time.Now()
205206
transferWg.Add(TRANSFER_CONNECTIONS)
206207
for i:=0; i<TRANSFER_CONNECTIONS; i++ {
207208
go transfer(i, &transferWg)
@@ -213,6 +214,8 @@ func main() {
213214
transferWg.Wait()
214215
running = false
215216
inspectWg.Wait()
217+
218+
fmt.Printf("Elapsed time %f sec", time.Since(start).Seconds())
216219
}
217220

218221
func exec(conn *pgx.Conn, stmt string, arguments ...interface{}) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy