Re: rds-json generate json with index key on first level of array

2013-02-26 Thread Mauro Stettler
On Mon, Feb 25, 2013 at 12:56 AM, Mauro Stettler wrote: > > Thanks, that would probably be possible. > > > > It's just that this URL is called very frequently, so I'm trying to do > > everything as resource efficient as possible. I am worried that parsing > the > &

Re: rds-json generate json with index key on first level of array

2013-02-25 Thread Mauro Stettler
Thanks, that would probably be possible. It's just that this URL is called very frequently, so I'm trying to do everything as resource efficient as possible. I am worried that parsing the json in lua in Nginx and reformatting it would be too heavy on the server load. So I would have preferred if t

rds-json generate json with index key on first level of array

2013-02-24 Thread Mauro Stettler
Hello Nginx list I'm using OpenResty with libdrizzle to provide a faster API to query certain things from my db. My current config is like this: location ~* ^/resty/usersTable/userId/([0-9\,]+)$ { set_unescape_uri $uid $1; drizzle_query 'select id, nickname, age