with closing(db.cursor()) as cursor:
x=cursor.execute(sql, argv)
records = cursor.fetchall()
return x, records
When i use two simultaneus ajax it crash. Is there any error in this code?
Cannot see how you open db connection
db = MySQLdb.connect("x.x.x.x","xxx","pass","database",port, charset='utf8') One connection
When is it called?
Какой странный английский.
Чойто. Я тут в пятницу тест сдавал. Мне сказали b2+
Probably will be better if you will show your code or gist
at the beginning of the code
You need to open connection for every request and close it after request processed
Or use a connection pool.
And then get connection from pool for every request and return it back when request processed
Вижу у тебя как и у меня проблема с артиклями =)
The error in "simultaneus", should be "simultaneous".
Обсуждают сегодня