Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    minhphuc
    @ngminhphuc
    but it return error: Caused by: java.sql.SQLException: Access denied for user ....
    minhphuc
    @ngminhphuc
    how to get swagger documentation from generated REST code, maybe this feature is removed
    Per-Åke Minborg
    @minborg
    This is described in the manual
    654968949
    @654968949
    Hello, I don't want to generate the entire database, I want to use "Speedment" to generate a separate table, what do I do?
    Is anybody there?
    654968949
    @654968949
    hello!
    Per-Åke Minborg
    @minborg
    Hi there. You can just disable all other tables in the GUI or you could edit the JSON file and remove the unwanted tables.
    654968949
    @654968949
    Thanks. In fact, what I want to ask is, during the development process, I only changed one field of a table in the database, do I also need to use The GUI generate all the table data of the whole database?
    Per-Åke Minborg
    @minborg
    No. There is a special Maven target for that.
    Per-Åke Minborg
    @minborg
    654968949
    @654968949
    what is the speacil Maven target ? ^-^ My database has a large number of tables, but I have only changed a few fields, I do not want to generate all of them, which is time-consuming.Is there any way?
    654968949
    @654968949
    OK,Thank you very much!
    Per-Åke Minborg
    @minborg
    NP. I hope this fixes your problem!
    mohan610
    @mohan610
    Hello
    Per-Åke Minborg
    @minborg
    @mohan610 Hi there. What’s up?
    shebuappukuttan
    @shebuappukuttan
    morning, iam trying a sample pilot project use .net client to connect hazelcast cache which inturn loads connects to db
    please some help on this, where to start etc.,
    shebuappukuttan
    @shebuappukuttan
    steps using this links "https://speedment.com/hazelcast-initializer#" works , but speedment support java files like "com.speedment.common.annotation.GeneratedCode" under com folder not getting generated
    any help much appreciated.
    Per-Åke Minborg
    @minborg
    Not sure I understand the problem. What happens when you press the “generate” button?
    Sugandha Sapra
    @XI1354-sugandhasapra
    Hi Team, I have downloaded a project from initializer & I am getting below error while loading the dependencies by maven in IntelliJ IDE
    Could not transfer artifact com.speedment.enterprise.connectors:sqlserver-connector:pom:3.2.6 from/to speedment-enterprise (https://repo.speedment.com/nexus/content/repositories/releases/): Transfer failed for https://repo.speedment.com/nexus/content/repositories/releases/com/speedment/enterprise/connectors/sqlserver-connector/3.2.6/sqlserver-connector-3.2.6.pom 500 Server Error
    I have also tried on command line & getting below error
    [ERROR] No plugin found for prefix 'speedment' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/sugandhasapra/.m2/repository), speedment-enterprise (https://repo.speedment.com/nexus/content/repositories/releases/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
    Am i missing anything here ?
    Per-Åke Minborg
    @minborg
    We will take a look at it @XI1354-sugandhasapra
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    Hi Team, I am trying out speement for my curiosity and testing it's amazingness to try it out in future projects. I have just setup a sample application using the tutorial page title
    and in title
    I ran the query and strangely I'm getting two queries in the output.
    2021-09-26T20:34:32.576Z INFO [main] (#APPLICATION_BUILDER) - Speedment (Open Source) version 3.2.6 by Speedment, Inc. Specification version 3.2 (Channing), License: Apache-2.0 2021-09-26T20:34:32.586Z INFO [main] (#APPLICATION_BUILDER) - Java Virtual Machine Specification 11 by Oracle Corporation. Implementation Java Platform API Specification 11.0.9 by Oracle Corporation 2021-09-26T20:34:32.594Z INFO [main] (#APPLICATION_BUILDER) - Available processors: 8, Max Memory: 4,211,081,216 bytes Loading classcom.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 2021-09-26T20:34:34.546Z INFO [main] (#APPLICATION_BUILDER) - MySQL, 8.0.23, MySQL Connector/J mysql-connector-java-8.0.18 (Revision: fef2894d751d47223192b706977b4a5bc41e6be4), JDBC version 4.2 2021-09-26T20:34:34.770Z DEBUG [main] (#STREAM) - SELECT COUNT(*) FROM (SELECTfilm_id,title,description,release_year,language_id,original_language_id,rental_duration,rental_rate,length,replacement_cost,rating,special_features,last_updateFROMsakila.filmWHERE (rating= ? COLLATE utf8_bin)) AS A, values:[PG-13] There are 223 PG-13 films in the DB
    Can someone help why two queries are being made while it should be ideally 1 query as it is there in the tutorial.
    Per-Åke Minborg
    @minborg
    I only see one query @mohdsalmanshaikh63 ? That query consist of two selects, perhaps that is your question?
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    Yes @minborg why is the subquery used instead of just select count(*) from.... ?
    Per-Åke Minborg
    @minborg
    This is due to an internal simplification in Speedment. The database will be able to “unroll” this abstraction in almost all cases.
    The idea is that we only want to return a single “long” and not all the fields.
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    I mean select count (*) from films where condition should be ideally used not two selects. I tried doing same count on other tables/entities and the result was same.
    Per-Åke Minborg
    @minborg
    The result will be same.
    As it turns out, it does not affect execution time significantly and consequently that optimization was not made.
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    Okay but will it affect performance for large data?
    Per-Åke Minborg
    @minborg
    No, most databases will be able to optimize away the redundant columns.
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    Okay thanks for the answer
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    I just have a few more concerns.
    Per-Åke Minborg
    @minborg
    OK. Let me know what’s on your mind :-)
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    Does speedment support stored procedures? Last I checked it didn't
    Per-Åke Minborg
    @minborg
    No it does not. This might be a cool feature though.
    mohdsalmanshaikh63
    @mohdsalmanshaikh63
    And does it support batch operations? I just checked it doesn't I guess but this would be helpful for background batch jobs https://www.google.com/url?sa=t&source=web&rct=j&url=https://github.com/speedment/speedment/issues/539&ved=2ahUKEwjI2YDQ_6bzAhV08HMBHYM0BzcQFnoECAMQAQ&usg=AOvVaw03BXf6IFoU2iLLRlgi3sZZ
    Stored procedures don't seem to be that much of an important feature unless the project requires high performance
    vrajkuma
    @vrajkuma
    Just tried a simple speedment example with MySQL 8 using Speedment OSS. My table has BIGINT type for Primary key and the generated code (in <table>SqlAdapter.java) is failing to compile as getBigInteger(int) is not a method available in java.sql.ResultSet. I used the speedment initializer to generate the project POM. Any pointers.. thanks.
    Per-Åke Minborg
    @minborg
    Hrm.. I suspect using BIGINT for PK is not supported. Could you please create an issue on GitHub regarding your problem?
    4 replies
    vrajkuma
    @vrajkuma
    In using the JoinComponent to get a join object and then subsequently streaming it, it is unclear where you specify operations like limit(), skip(), count(), sum() so they will execute in the database as part of the generated SQL query. Doing this on the join object seems like they will execute on the client side once all tuples (based on JoinComponent) are fetched? Are the same optimizations (for limit, skip, count etc) that are done for single-table streaming also done for join object?
    Per-Åke Minborg
    @minborg
    In general, it is not specified exactly how queries are optimized and where they are executed. Depending on the join pipeline, operations may infact be executed on the database side. The best way to see is turing on logging for stream operations. Then you will see exactly how queries are rendered.
    Limit, for example, is tricky do do with joins in the generall case.