Re: FileUpload with ERRest

2018-03-13 Thread André Rothe
Hm, this results in a NullPointerException on response() and errorResponse(). Is it mandatory to have an EO name within the route? André On 13.03.2018 15:58, André Rothe wrote: > Maybe I can add a route in the Application class: > > routeRequestHandler.addRoute(new ERXRoute(null, "/upload", >

Re: FileUpload with ERRest

2018-03-13 Thread André Rothe
Maybe I can add a route in the Application class: routeRequestHandler.addRoute(new ERXRoute(null, "/upload", ERXRoute.Method.Post, UploadController.class, "uploadFile")); And then I could implement a controller class UploadController: public class UploadController extends ERXRouteController {

Re: UBUNTU 16.04 MySQL performance

2018-03-13 Thread Samuel Pelletier
Hi Stavros, I would not expect MySQL to be slower on any Linux, usually, it is the reverse situation. Very long query like this one is probably very io intensive, even 3 second is quite long for a query (except for large data set reporting). So I suggest you look at these: - The cpu and io

FileUpload with ERRest

2018-03-13 Thread André Rothe
Hi, Is it possible to use ERRest for a file upload with multipart-form-data? I try to upload a file to the server to create an instance of an EO (instead of the createAction()). Thank you André ___ Do not post admin requests to the list. They will be

UBUNTU 16.04 MySQL performance

2018-03-13 Thread Stavros Panidis
Hi all, Recently I tested an app in an AWS Lightsail instance UBUNTU 16.04 server running MySQL 5.7. I realised extremely slow performance running queries, comparing to the same exactly database running on a Mac OS X High Sierra. For example a query that is performed within 3 seconds on MAC