Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import time
  2. import sqlite3
  3.  
  4. conn = sqlite3.connect('/home/jan/.local/share/zeitgeist/activity.sqlite')
  5. c = conn.cursor()
  6.  
  7. t = time.time()
  8. rows = c.execute("SELECT timestamp, subj_text, subj_uri FROM event_view").fetchall()
  9. print len(rows), time.time() - t
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement