如果用户在mysql长查询中间关闭页面怎么办? [英] What to do if user closes page in the middle of a mysql long query?

查看:109
本文介绍了如果用户在mysql长查询中间关闭页面怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户只是关闭页面,mysql查询会怎样?我应该对此进行任何形式的检查吗?我正在使用JPA 2.0(EclipseLink 2.0),JSF 2.0,EJB 3.1(lite)和Glassfish 3.1.谢谢.

What happens to the mysql query if the user just closes the page? Should I be doing any kind of checking for this? I'm using JPA 2.0(EclipseLink 2.0), JSF 2.0, EJB 3.1(lite) and Glassfish 3.1. Thanks.

推荐答案

在数据库中,查询将继续运行直到完成.可能会终止运行查询的会话,但是在数据库外部提供该功能存在安全隐患.

In the database, the query will continue to run until completion. It's possible to kill the session running the query, but there's a security concern with providing that ability outside of the database.

这篇关于如果用户在mysql长查询中间关闭页面怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆