Skip to content

Commit

Permalink
Use json for dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Meisinger committed Mar 10, 2014
1 parent 8330be6 commit c2b799a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions pyon/datastore/postgresql/README.txt
Expand Up @@ -39,8 +39,6 @@ FUTURE FEATURES:

OPEN QUESTIONS:
- EXPLAIN ANALYZE queries
- Use postgres 9.3 json operators?
- Rewrite some of the json functions
- list_datastores() must maintain compatible result, prefixing database with sysname (because of framework code)
- Use msgpack for object serialization instead of json and custom accessor functions?
- Use msgpack and BYTEA for object serialization instead of json and custom accessor functions?
- rewrite association queries as select * from resources where id in (select from assoc)
4 changes: 3 additions & 1 deletion pyon/datastore/postgresql/base_store.py
Expand Up @@ -7,7 +7,9 @@
import getpass
import os.path
from uuid import uuid4
import simplejson as json
# Note: standard json is faster than simplejson for dumps
# See https://confluence.oceanobservatories.org/display/CIDev/Container+Messaging+Performance
import json

try:
import psycopg2
Expand Down

0 comments on commit c2b799a

Please sign in to comment.