Questions Tagged With databasehttps://answers.axonivy.com/tags/database/?type=rssquestions tagged <span class="tag">database</span>enWed, 08 Apr 2020 04:49:27 -0400Using Derby Database in Axon.ivyhttps://answers.axonivy.com/questions/4494/using-derby-database-in-axon-ivy<p>Hello, Is there any way to use the apache derby database in AxonIvy platform 8.0? I tried adding the driver to the project buildpath and configuring the database, but it isnt working through the editor. Is there something that i need to do for it to work?</p>TareqKWed, 08 Apr 2020 04:49:27 -0400https://answers.axonivy.com/questions/4494/using-derby-database-in-axon-ivydatabaseCannot modify the length of ivy task name in the databasehttps://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-database<p>Hi there. </p> <p>Today, I have a problem with the name of a task. The name of the task is over 200 characters and exceeds the capacity the whole task name can be saved to the database. </p> <p>My question is how can I change the length of the Ivy task name in the database? I want to make it unlimited. </p> <p>Thank you</p>ntctuyenSat, 02 Nov 2019 03:34:04 -0400https://answers.axonivy.com/questions/4132/cannot-modify-the-length-of-ivy-task-name-in-the-databasetaskivydatabaseNoSQL In Axon.Ivyhttps://answers.axonivy.com/questions/4124/nosql-in-axon-ivy<p>Hello, Has anybody had any experiences with Axon.Ivy and NoSQL databases(namely, MongoDB) ? And if so, how did they approach it and what were the benefits/downsides of using NoSQL with Axon.Ivy.</p> <p>I know that Axon.Ivy Has some NoSQL functionality in it, but we are considering to use a more robust external database rather than relying on the internal one. </p> <p>For context, I have some experience in NoSQL and java, Namely in MongoDB using the Jongo driver. Anybody who has done java implementations is also welcome to share their knowledge.</p>TareqKFri, 25 Oct 2019 14:17:17 -0400https://answers.axonivy.com/questions/4124/nosql-in-axon-ivypersistencedatabaseGet data from database directly not via ElasticSearchhttps://answers.axonivy.com/questions/3935/get-data-from-database-directly-not-via-elasticsearch<p>Hi everyone, I have a case can not get data via ElasticSearch, I want to get data from iwa_bussiness in the database directly. Have any Ivy API to support this case?. Thank!</p>Phuoc NguyenWed, 28 Aug 2019 08:51:59 -0400https://answers.axonivy.com/questions/3935/get-data-from-database-directly-not-via-elasticsearchapielasticsearchdatabaseHow to count all rows in the databasehttps://answers.axonivy.com/questions/3837/how-to-count-all-rows-in-the-database<p>Hi all, Currently, I want to know in the database have many records and I try to use <code>businessDataRepository.search(t.getClass()).execute().count();</code>, but this one just returns for me 10 rows by default. For example: in the database, I have 10.000 records, and I want to return this number.</p> <p>Do we have any API to do this case?</p>Phuoc NguyenThu, 06 Jun 2019 06:38:01 -0400https://answers.axonivy.com/questions/3837/how-to-count-all-rows-in-the-databasedatabaseHuge MySQL/MariaDB System Database has slow response timehttps://answers.axonivy.com/questions/3654/huge-mysql-mariadb-system-database-has-slow-response-time<p>I've got so far some ivy engines running with mysql and mariadb as system database. The databases are huge, with about 10'000'000 tasks. With more and more tasks the responding time will be slower. The more tasks in the database, the worse the response times. Is there anything I can do to optimize this?</p>SupportIvyTeamMon, 04 Feb 2019 10:43:40 -0500https://answers.axonivy.com/questions/3654/huge-mysql-mariadb-system-database-has-slow-response-timemysqlmariadbsystemdbdatabaseHow to execute some code at Ivy Project deployment time for upgrading a database ?https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-database<p>Hi IvyTeam,</p> <p>We have the following situation: we will have to deploy from time to time an Ivy Application. This application defines a database (MS SQL) for storing the application's data. We would like to create/update this database automatically at Ivy Deployment time with an database updating system like Flyway. (With some SQL Scripts CREATE / UPDATE TABLE ....)</p> <ul> <li>Is that already possible with Ivy? Ivy does it already at Ivy Engine installation or upgrade time with its System database. This would be a great feature if we could create/upgrade our project's databases at application deployment time.</li> <li>If not we should be able to execute some code at Ivy deployment time. Is there some Ivy Server Extension points allowing this easily?</li> </ul> <p>Thanks a lot in advance Cheers Emmanuel</p>Emmanuel CombaWed, 12 Dec 2018 09:49:00 -0500https://answers.axonivy.com/questions/3574/how-to-execute-some-code-at-ivy-project-deployment-time-for-upgrading-a-databasedatabaseivydeploymentHow can i save bytearrays via the entityclass in a database?https://answers.axonivy.com/questions/3478/how-can-i-save-bytearrays-via-the-entityclass-in-a-database<p>Hello,</p> <p>I am trying to set up an entityclass with a postgres server. I need this database to store some images i upload with the primefaces <code>&amp;lt; p:fileUpload/&gt;</code> tag. With this tag the images are uploaded as a <code>UploadedFile</code>, now I can access the contents via <code>getContents()</code> and I will get the image as a Bytearray (byte[] in Java) . </p> <p>Now I need to know how can i save this Byte Array via the entityclasses in my postgres database. Postgres allows the datatype <code>bytea</code> for a column for this datatype, but if I add Bytearray as a type for the column in the entityclass AxonIvy throws this error: <code>The field type 'Binary' does not support persistence</code>. </p> <p>So my question is:<br> Is there any possibility i can save bytearray or blobs on my postgres server via the entity class?<br> What are all the classes which <strong>support</strong> <em>persistence</em>?</p> <p>Thanks</p>markusinhoThu, 11 Oct 2018 11:00:01 -0400https://answers.axonivy.com/questions/3478/how-can-i-save-bytearrays-via-the-entityclass-in-a-databasefileuploadpersistencedatabaseHow to access database in a faces Validatorhttps://answers.axonivy.com/questions/3364/how-to-access-database-in-a-faces-validator<p>Hi all, I am new to AXON IVY. Hope you can be patient with me.</p> <p>I am trying to use that code here: <a href="https://answers.axonivy.com/questions/314/using-db-connection-from-pis">https://answers.axonivy.com/questions/314/using-db-connection-from-pis</a> (provided by Ivy Support Team) in a Java class in a CustomValidator class to look up a database table. Somehow I could not resolve the Ivy object. </p> <p>I tried looking up getProcessEngineHook method in <a href="https://developer.axonivy.com/doc/latest/PublicAPI">https://developer.axonivy.com/doc/latest/PublicAPI</a> but the search doesn't return any results.</p> <p>My codes as follows:</p> <pre><code>package trial.facesValidation; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.FacesValidator; import javax.faces.validator.Validator; import javax.faces.validator.ValidatorException; import java.sql.Connection; // To validate if Item Name already existed in Parts table in Database @FacesValidator("trial.facesValidation.CustomItemValidator") public class CustomItemValidator implements Validator { @Override public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException { //connect to the database Connection dbconnection = ivy.getProcessEngineHook().getDbConnection("TrialDBConn"); try { // execute some sql queries } finally { // close the connection dbconnection.close(); } </code></pre>wesingMon, 23 Jul 2018 23:32:38 -0400https://answers.axonivy.com/questions/3364/how-to-access-database-in-a-faces-validatorjsfdatabaseHow do I specify the maximum number of connections to the IvySystemDatabase?https://answers.axonivy.com/questions/3352/how-do-i-specify-the-maximum-number-of-connections-to-the-ivysystemdatabase<p>I would like to increase the size of the database connection pool to the system database. I couldn't find a system property that does that so far.</p> <p>Can I change the connection pool size and if yes, how?</p>SupportIvyTeamFri, 06 Jul 2018 09:27:05 -0400https://answers.axonivy.com/questions/3352/how-do-i-specify-the-maximum-number-of-connections-to-the-ivysystemdatabaseconfigurationdatabase